copyWith method

VinculumClient copyWith({
  1. String? baseUrl,
  2. String? authServiceUrl,
  3. String? databaseServiceUrl,
  4. String? storageServiceUrl,
  5. String? realtimeServiceUrl,
  6. TokenStorage? tokenStorage,
  7. Duration? timeout,
  8. bool? enableLogging,
})

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