copyWith method
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,
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,
);
}