copyWith method

RealtimeAudioConfigOutput copyWith({
  1. Object? format = unsetCopyWithValue,
  2. Object? voice = unsetCopyWithValue,
  3. Object? speed = unsetCopyWithValue,
})

Returns a copy of this RealtimeAudioConfigOutput with the given fields replaced. Pass null for any field to clear the existing value.

Implementation

RealtimeAudioConfigOutput copyWith({
  Object? format = unsetCopyWithValue,
  Object? voice = unsetCopyWithValue,
  Object? speed = unsetCopyWithValue,
}) => RealtimeAudioConfigOutput(
  format: identical(format, unsetCopyWithValue)
      ? this.format
      : format as RealtimeAudioFormats?,
  voice: identical(voice, unsetCopyWithValue) ? this.voice : voice as String?,
  speed: identical(speed, unsetCopyWithValue) ? this.speed : speed as double?,
);