network_cache_interceptor library
Classes
- NetworkCacheInterceptor
- A Dio interceptor for caching network requests.
Typedefs
- CacheWhenPredicate = bool Function(Response response)
-
Signature for a callback that decides whether a successful
Responseshould be cached. Returntrueto cache the response,falseto skip it.
Exceptions / Errors
- CacheMissException
-
Error attached to the
DioExceptionraised when a request inonly_cachemode finds no valid cached response.