copyWith method

NexusCall copyWith({
  1. String? legId,
  2. VoiceCallState? state,
  3. bool? muted,
  4. bool? onHold,
  5. bool? speakerphone,
  6. DateTime? connectedAt,
  7. CallQualitySample? quality,
  8. 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,
    );