Closed pitiphat closed 4 years ago
Hello i'm beginner
Why when closing an app cache cleared.
var _dio = Dio(); var _dioCacheManager = new DioCacheManager(CacheConfig(baseUrl: url)); _dio.interceptors.add(_dioCacheManager.interceptor); var response = await _dio.post("${url}", data: params, options: buildCacheOptions( Duration(days: 3), maxStale: Duration(days: 7), ));
i change param and clean project it work Map<String, String> param = { "xxxx": "${xxx}", "xxxx": "xxxx" };
Map<String, String> param = { "xxxx": "${xxx}", "xxxx": "xxxx" };
to
var param= {'xxx': _xxx, "xxx": "xxx"};
Hello i'm beginner
Why when closing an app cache cleared.