CacheConfig constructor

const CacheConfig({
  1. bool isToCache = false,
  2. Duration cacheDuration = const Duration(days: 3),
  3. bool isToLoadDataFromCache = false,
  4. bool isToRefresh = false,
  5. dynamic additionCallback(
    1. bool,
    2. bool
    )?,
})

Implementation

const CacheConfig({
  this.isToCache = false,
  this.cacheDuration = const Duration(days: 3),
  this.isToLoadDataFromCache = false,
  this.isToRefresh = false,
  this.additionCallback,
});