copyWith method

CallEvent copyWith({
  1. String? id,
  2. bool? isGroup,
  3. bool? isVideo,
  4. int? offerTime,
  5. String? sender,
  6. String? peerJid,
})

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