copyWith method
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,
);
}