copyWith method
Creates a copy of this config with the given fields replaced
Implementation
McpClientConfig copyWith({
String? name,
String? version,
ClientCapabilities? capabilities,
int? maxRetries,
Duration? retryDelay,
Duration? requestTimeout,
bool? enableDebugLogging,
}) {
return McpClientConfig(
name: name ?? this.name,
version: version ?? this.version,
capabilities: capabilities ?? this.capabilities,
maxRetries: maxRetries ?? this.maxRetries,
retryDelay: retryDelay ?? this.retryDelay,
requestTimeout: requestTimeout ?? this.requestTimeout,
enableDebugLogging: enableDebugLogging ?? this.enableDebugLogging,
);
}