copyWith method
Creates a new client with a different configuration
Implementation
VinculumClient copyWith({
String? baseUrl,
String? authServiceUrl,
String? databaseServiceUrl,
String? storageServiceUrl,
String? realtimeServiceUrl,
TokenStorage? tokenStorage,
Duration? timeout,
bool? enableLogging,
}) {
return VinculumClient.withConfig(
config: _config.copyWith(
baseUrl: baseUrl,
authServiceUrl: authServiceUrl,
databaseServiceUrl: databaseServiceUrl,
storageServiceUrl: storageServiceUrl,
realtimeServiceUrl: realtimeServiceUrl,
timeout: timeout,
enableLogging: enableLogging,
),
tokenStorage: tokenStorage ?? _tokenStorage,
);
}