copyWith method
Implementation
CallEvent copyWith({
String? id,
bool? isGroup,
bool? isVideo,
int? offerTime,
String? sender,
String? peerJid,
}) {
return CallEvent(
id: id ?? this.id,
isGroup: isGroup ?? this.isGroup,
isVideo: isVideo ?? this.isVideo,
offerTime: offerTime ?? this.offerTime,
sender: sender ?? this.sender,
peerJid: peerJid ?? this.peerJid,
);
}