build method

RxNetConfig build()

构建 RxNetConfig 实例

Implementation

RxNetConfig build() {
  return RxNetConfig(
    baseUrl: _baseUrl,
    adapter: _adapter,
    adapterBaseOptions: _adapterBaseOptions,
    cachePath: _cachePath,
    cacheName: _cacheName,
    databaseName: _databaseName,
    cacheMode: _cacheMode,
    interceptors: _interceptors.isEmpty ? null : List.unmodifiable(_interceptors),
    systemLog: _systemLog,
    isDebug: _isDebug,
    baseCheckNet: _baseCheckNet,
    ignoreCacheKeys: _ignoreCacheKeys,
    baseUrlEnv: _baseUrlEnv,
    cacheInvalidationTime: _cacheInvalidationTime,
    cacheMaxSize: _cacheMaxSize,
    cacheEvictionPolicy: _cacheEvictionPolicy,
    debugWindowWidth: _debugWindowWidth,
    debugWindowHeight: _debugWindowHeight,
  );
}