copyWith method

  1. @override
MessageGroupCall copyWith({
  1. int? uniqueId,
  2. bool? isActive,
  3. bool? wasMissed,
  4. bool? isVideo,
  5. int? duration,
  6. List<MessageSender>? otherParticipantIds,
})
override

Returns a copy with the given fields replaced. For a nullable field pass a function, e.g. field: () => null to clear it.

Implementation

@override
MessageGroupCall copyWith({
  int? uniqueId,
  bool? isActive,
  bool? wasMissed,
  bool? isVideo,
  int? duration,
  List<MessageSender>? otherParticipantIds,
}) => MessageGroupCall(
  uniqueId: uniqueId ?? this.uniqueId,
  isActive: isActive ?? this.isActive,
  wasMissed: wasMissed ?? this.wasMissed,
  isVideo: isVideo ?? this.isVideo,
  duration: duration ?? this.duration,
  otherParticipantIds: otherParticipantIds ?? this.otherParticipantIds,
);