copyWith method

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

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

Implementation

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