CacheConfig.forceRefresh constructor

const CacheConfig.forceRefresh({
  1. required IwsCache cache,
  2. Duration? ttl,
  3. bool staleWhileRevalidate = false,
})

Creates a cache config that forces refresh from server and updates cache

Implementation

const CacheConfig.forceRefresh({
  required this.cache,
  this.ttl,
  this.staleWhileRevalidate = false,
}) : forceRefresh = true;