copyWith method

StreamingConfig copyWith({
  1. StreamingMode? mode,
  2. String? websocketUrl,
  3. String? apiKey,
  4. String? userId,
  5. String? language,
  6. bool? includeSpeechProfile,
  7. Map<String, String>? customHeaders,
  8. Map<String, String>? customParams,
})

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