copyWith method
RealtimeTranslationSession
copyWith({
- String? id,
- String? type,
- int? expiresAt,
- String? model,
- RealtimeTranslationSessionAudio? audio,
Returns a copy with the given fields replaced.
Implementation
RealtimeTranslationSession copyWith({
String? id,
String? type,
int? expiresAt,
String? model,
RealtimeTranslationSessionAudio? audio,
}) => RealtimeTranslationSession(
id: id ?? this.id,
type: type ?? this.type,
expiresAt: expiresAt ?? this.expiresAt,
model: model ?? this.model,
audio: audio ?? this.audio,
);