RxNetConfig constructor
const
RxNetConfig({
- required String baseUrl,
- NetworkAdapter? adapter,
- AdapterBaseOptions? adapterBaseOptions,
- String? cachePath,
- String cacheName = 'network_cache',
- String databaseName = 'rxnet_cache.db',
- CacheMode cacheMode = CacheMode.ONLY_REQUEST,
- List<
AdapterInterceptor> ? interceptors, - bool systemLog = false,
- bool isDebug = true,
- CheckNetWork? baseCheckNet,
- List<
String> ? ignoreCacheKeys, - Map<
String, dynamic> ? baseUrlEnv, - int cacheInvalidationTime = _defaultCacheInvalidationTime,
- int cacheMaxSize = 0,
- CacheEvictionPolicy cacheEvictionPolicy = CacheEvictionPolicy.none,
- double debugWindowWidth = 800,
- 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,
});