TF-1606 Store jmapUrl on memory
(cherry picked from commit 5e7e0f0cfb34510b5c341417044b8057cde2ca35)
This commit is contained in:
@@ -1,12 +1,19 @@
|
||||
import 'package:dio/dio.dart';
|
||||
|
||||
class DynamicUrlInterceptors extends InterceptorsWrapper {
|
||||
String? _jmapUrl;
|
||||
String? _baseUrl;
|
||||
|
||||
void changeBaseUrl(String? url) {
|
||||
_baseUrl = url;
|
||||
}
|
||||
|
||||
void setJmapUrl(String? url) {
|
||||
_jmapUrl = url;
|
||||
}
|
||||
|
||||
String? get jmapUrl => _jmapUrl;
|
||||
|
||||
String? get baseUrl => _baseUrl;
|
||||
|
||||
@override
|
||||
|
||||
Reference in New Issue
Block a user