copyWith method

ChatAudioConfig copyWith({
  1. ChatAudioVoice? voice,
  2. ChatAudioFormat? format,
})

Creates a copy with replaced values.

Implementation

ChatAudioConfig copyWith({ChatAudioVoice? voice, ChatAudioFormat? format}) {
  return ChatAudioConfig(
    voice: voice ?? this.voice,
    format: format ?? this.format,
  );
}