copyWith method
NexusCall
copyWith({
- String? legId,
- VoiceCallState? state,
- bool? muted,
- bool? onHold,
- bool? speakerphone,
- DateTime? connectedAt,
- CallQualitySample? quality,
- String? endReason,
Implementation
NexusCall copyWith({
String? legId,
VoiceCallState? state,
bool? muted,
bool? onHold,
bool? speakerphone,
DateTime? connectedAt,
CallQualitySample? quality,
String? endReason,
}) =>
NexusCall(
sessionId: sessionId,
direction: direction,
state: state ?? this.state,
legId: legId ?? this.legId,
remoteAddress: remoteAddress,
remoteName: remoteName,
remoteAvatar: remoteAvatar,
muted: muted ?? this.muted,
onHold: onHold ?? this.onHold,
speakerphone: speakerphone ?? this.speakerphone,
startedAt: startedAt,
connectedAt: connectedAt ?? this.connectedAt,
quality: quality ?? this.quality,
endReason: endReason ?? this.endReason,
metadata: metadata,
);