copyWith method
Creates a copy of this configuration with modified values
Implementation
MultistreamConfig copyWith({
Duration? readTimeout,
int? maxRetries,
bool? useProgressiveTimeout,
Duration? initialTimeout,
int? maxTimeoutAttempts,
double? timeoutMultiplier,
Duration? retryDelay,
bool? enableTimeoutLogging,
}) {
return MultistreamConfig(
readTimeout: readTimeout ?? this.readTimeout,
maxRetries: maxRetries ?? this.maxRetries,
useProgressiveTimeout: useProgressiveTimeout ?? this.useProgressiveTimeout,
initialTimeout: initialTimeout ?? this.initialTimeout,
maxTimeoutAttempts: maxTimeoutAttempts ?? this.maxTimeoutAttempts,
timeoutMultiplier: timeoutMultiplier ?? this.timeoutMultiplier,
retryDelay: retryDelay ?? this.retryDelay,
enableTimeoutLogging: enableTimeoutLogging ?? this.enableTimeoutLogging,
);
}