copyWith method

ToggleGroupCallParticipantIsMuted copyWith({
  1. int? groupCallId,
  2. MessageSender? participantId,
  3. bool? isMuted,
})

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

Implementation

ToggleGroupCallParticipantIsMuted copyWith({
  int? groupCallId,
  MessageSender? participantId,
  bool? isMuted,
}) =>
    ToggleGroupCallParticipantIsMuted(
      groupCallId: groupCallId ?? this.groupCallId,
      participantId: participantId ?? this.participantId,
      isMuted: isMuted ?? this.isMuted,
    );