copyWith method

VinculumConfig copyWith({
  1. String? baseUrl,
  2. String? authServiceUrl,
  3. String? databaseServiceUrl,
  4. String? storageServiceUrl,
  5. String? realtimeServiceUrl,
  6. Duration? timeout,
  7. Duration? connectTimeout,
  8. bool? enableLogging,
  9. Level? logLevel,
  10. int? maxRetries,
  11. Duration? retryDelay,
  12. bool? enableAutoRefresh,
  13. Map<String, String>? headers,
})

Creates a copy with the given fields replaced

Implementation

VinculumConfig copyWith({
  String? baseUrl,
  String? authServiceUrl,
  String? databaseServiceUrl,
  String? storageServiceUrl,
  String? realtimeServiceUrl,
  Duration? timeout,
  Duration? connectTimeout,
  bool? enableLogging,
  Level? logLevel,
  int? maxRetries,
  Duration? retryDelay,
  bool? enableAutoRefresh,
  Map<String, String>? headers,
}) {
  return VinculumConfig(
    baseUrl: baseUrl ?? this.baseUrl,
    authServiceUrl: authServiceUrl ?? this.authServiceUrl,
    databaseServiceUrl: databaseServiceUrl ?? this.databaseServiceUrl,
    storageServiceUrl: storageServiceUrl ?? this.storageServiceUrl,
    realtimeServiceUrl: realtimeServiceUrl ?? this.realtimeServiceUrl,
    timeout: timeout ?? this.timeout,
    connectTimeout: connectTimeout ?? this.connectTimeout,
    enableLogging: enableLogging ?? this.enableLogging,
    logLevel: logLevel ?? this.logLevel,
    maxRetries: maxRetries ?? this.maxRetries,
    retryDelay: retryDelay ?? this.retryDelay,
    enableAutoRefresh: enableAutoRefresh ?? this.enableAutoRefresh,
    headers: headers ?? this.headers,
  );
}