copyWith method
SpeechListenOptions
copyWith(
{ - bool? cancelOnError,
- bool? partialResults,
- bool? onDevice,
- ListenMode? listenMode,
- int? sampleRate,
- bool? autoPunctuation,
- bool? enableHapticFeedback,
- Duration? pauseFor,
- Duration? listenFor,
- String? localeId,
- List<String>? contextualPhrases,
})
Implementation
SpeechListenOptions copyWith({
bool? cancelOnError,
bool? partialResults,
bool? onDevice,
ListenMode? listenMode,
int? sampleRate,
bool? autoPunctuation,
bool? enableHapticFeedback,
Duration? pauseFor,
Duration? listenFor,
String? localeId,
List<String>? contextualPhrases,
}) {
return SpeechListenOptions(
cancelOnError: cancelOnError ?? this.cancelOnError,
partialResults: partialResults ?? this.partialResults,
onDevice: onDevice ?? this.onDevice,
listenMode: listenMode ?? this.listenMode,
sampleRate: sampleRate ?? this.sampleRate,
autoPunctuation: autoPunctuation ?? this.autoPunctuation,
enableHapticFeedback: enableHapticFeedback ?? this.enableHapticFeedback,
pauseFor: pauseFor ?? this.pauseFor,
listenFor: listenFor ?? this.listenFor,
localeId: localeId ?? this.localeId,
contextualPhrases: contextualPhrases ?? this.contextualPhrases);
}