CacheOptions constructor

const CacheOptions({
  1. CachePolicy policy = CachePolicy.request,
  2. List<int> hitCacheOnErrorCodes = const [],
  3. bool hitCacheOnNetworkFailure = false,
  4. CacheKeyBuilder keyBuilder = defaultCacheKeyBuilder,
  5. Duration? maxStale,
  6. CachePriority priority = CachePriority.normal,
  7. CacheCipher? cipher,
  8. bool allowPostMethod = false,
  9. 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,
});