flutter cache manager with dio in flutter code example
Example: dio cache flutter
DioCacheManager _dioCacheManager = DioCacheManager(CacheConfig());
Options _cacheOptions = buildCacheOptions(Duration(days: 7));
Dio _dio =Dio();
_dio.interceptors.add(_dioCacheManager.interceptor);
Response data =await _dio.get(pratinidhiandkarmachari, options: _cacheOptions);
List<dynamic> list = data.data;
print(list);