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 Response should be cached. Return true to cache the response, false to skip it.

Exceptions / Errors

CacheMissException
Error attached to the DioException raised when a request in only_cache mode finds no valid cached response.