CacheOptions constructor
const
CacheOptions({
- CachePolicy policy = CachePolicy.request,
- List<
int> hitCacheOnErrorCodes = const [], - bool hitCacheOnNetworkFailure = false,
- CacheKeyBuilder keyBuilder = defaultCacheKeyBuilder,
- Duration? maxStale,
- CachePriority priority = CachePriority.normal,
- CacheCipher? cipher,
- bool allowPostMethod = false,
- required CacheStore? store,
Implementation
const CacheOptions({
this.policy = CachePolicy.request,
this.hitCacheOnErrorCodes = const [],
this.hitCacheOnNetworkFailure = false,
this.keyBuilder = defaultCacheKeyBuilder,
this.maxStale,
this.priority = CachePriority.normal,
this.cipher,
this.allowPostMethod = false,
required this.store,
});