TF-1606 Store jmapUrl on memory

(cherry picked from commit 5e7e0f0cfb34510b5c341417044b8057cde2ca35)
This commit is contained in:
dab246
2023-03-20 16:59:41 +07:00
committed by Dat Vu
parent 6bd48aef7b
commit 29219eb14e
5 changed files with 16 additions and 2 deletions
@@ -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