copyWith method
Create a copy with modified values
Implementation
VoiceSessionConfig copyWith({
double? silenceDuration,
double? speechThreshold,
bool? autoPlayTTS,
bool? continuousMode,
}) {
return VoiceSessionConfig(
silenceDuration: silenceDuration ?? this.silenceDuration,
speechThreshold: speechThreshold ?? this.speechThreshold,
autoPlayTTS: autoPlayTTS ?? this.autoPlayTTS,
continuousMode: continuousMode ?? this.continuousMode,
);
}