RxNetConfig constructor

const RxNetConfig({
  1. required String baseUrl,
  2. NetworkAdapter? adapter,
  3. AdapterBaseOptions? adapterBaseOptions,
  4. String? cachePath,
  5. String cacheName = 'network_cache',
  6. String databaseName = 'rxnet_cache.db',
  7. CacheMode cacheMode = CacheMode.ONLY_REQUEST,
  8. List<AdapterInterceptor>? interceptors,
  9. bool systemLog = false,
  10. bool isDebug = true,
  11. CheckNetWork? baseCheckNet,
  12. List<String>? ignoreCacheKeys,
  13. Map<String, dynamic>? baseUrlEnv,
  14. int cacheInvalidationTime = _defaultCacheInvalidationTime,
  15. int cacheMaxSize = 0,
  16. CacheEvictionPolicy cacheEvictionPolicy = CacheEvictionPolicy.none,
  17. double debugWindowWidth = 800,
  18. double debugWindowHeight = 600,
})

Implementation

const RxNetConfig({
  required this.baseUrl,
  this.adapter,
  this.adapterBaseOptions,
  this.cachePath,
  this.cacheName = 'network_cache',
  this.databaseName = 'rxnet_cache.db',
  this.cacheMode = CacheMode.ONLY_REQUEST,
  this.interceptors,
  this.systemLog = false,
  this.isDebug = true,
  this.baseCheckNet,
  this.ignoreCacheKeys,
  this.baseUrlEnv,
  this.cacheInvalidationTime = _defaultCacheInvalidationTime,
  this.cacheMaxSize = 0,
  this.cacheEvictionPolicy = CacheEvictionPolicy.none,
  this.debugWindowWidth = 800,
  this.debugWindowHeight = 600,
});