copyWith method

CallStatus copyWith({
  1. bool? isCallOngoing,
  2. bool? isMuted,
  3. bool? isOnHold,
  4. bool? isSpeakerOn,
  5. String? callType,
  6. String? currentDID,
  7. String? registeredNumber,
})

Creates a copy of this CallStatus with the given fields replaced by new values

Implementation

CallStatus copyWith({
  bool? isCallOngoing,
  bool? isMuted,
  bool? isOnHold,
  bool? isSpeakerOn,
  String? callType,
  String? currentDID,
  String? registeredNumber,
}) {
  return CallStatus(
    isCallOngoing: isCallOngoing ?? this.isCallOngoing,
    isMuted: isMuted ?? this.isMuted,
    isOnHold: isOnHold ?? this.isOnHold,
    isSpeakerOn: isSpeakerOn ?? this.isSpeakerOn,
    callType: callType ?? this.callType,
    currentDID: currentDID ?? this.currentDID,
    registeredNumber: registeredNumber ?? this.registeredNumber,
  );
}