copyWith method

VideoChat copyWith({
  1. int? groupCallId,
  2. bool? hasParticipants,
  3. MessageSender? defaultParticipantId()?,
})

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

Implementation

VideoChat copyWith({
  int? groupCallId,
  bool? hasParticipants,
  MessageSender? Function()? defaultParticipantId,
}) => VideoChat(
  groupCallId: groupCallId ?? this.groupCallId,
  hasParticipants: hasParticipants ?? this.hasParticipants,
  defaultParticipantId: defaultParticipantId != null
      ? defaultParticipantId()
      : this.defaultParticipantId,
);