CacheOptions constructor

const CacheOptions({
  1. CachePolicy policy = CachePolicy.request,
  2. List<int>? hitCacheOnErrorExcept,
  3. CacheKeyBuilder keyBuilder = defaultCacheKeyBuilder,
  4. Duration? maxStale,
  5. CachePriority priority = CachePriority.normal,
  6. CacheCipher? cipher,
  7. bool allowPostMethod = false,
  8. required CacheStore? store,
})

Implementation

const CacheOptions({
  this.policy = CachePolicy.request,
  this.hitCacheOnErrorExcept,
  this.keyBuilder = defaultCacheKeyBuilder,
  this.maxStale,
  this.priority = CachePriority.normal,
  this.cipher,
  this.allowPostMethod = false,
  required this.store,
});