copyWith method
Implementation
StreamingConfig copyWith({
StreamingMode? mode,
String? websocketUrl,
String? apiKey,
String? userId,
String? language,
bool? includeSpeechProfile,
Map<String, String>? customHeaders,
Map<String, String>? customParams,
}) {
return StreamingConfig(
mode: mode ?? this.mode,
websocketUrl: websocketUrl ?? this.websocketUrl,
apiKey: apiKey ?? this.apiKey,
userId: userId ?? this.userId,
language: language ?? this.language,
includeSpeechProfile: includeSpeechProfile ?? this.includeSpeechProfile,
customHeaders: customHeaders ?? this.customHeaders,
customParams: customParams ?? this.customParams,
);
}