ApiCacheConfig constructor
const
ApiCacheConfig({})
Implementation
const ApiCacheConfig({
this.enabled = true,
this.defaultPolicy = ApiCachePolicy.networkFirst,
this.defaultTtl = const Duration(minutes: 5),
this.allowStaleOnNetworkError = true,
this.clearPreviousSessionOnChange = true,
this.maxEntries = 1000,
});