copyWith method
Returns a copy with the given fields replaced. For a nullable
field pass a function, e.g. field: () => null to clear it.
Implementation
JoinGroupCall copyWith({
int? groupCallId,
MessageSender? Function()? participantId,
int? audioSourceId,
String? payload,
bool? isMuted,
bool? isMyVideoEnabled,
String? inviteHash,
}) =>
JoinGroupCall(
groupCallId: groupCallId ?? this.groupCallId,
participantId:
participantId != null ? participantId() : this.participantId,
audioSourceId: audioSourceId ?? this.audioSourceId,
payload: payload ?? this.payload,
isMuted: isMuted ?? this.isMuted,
isMyVideoEnabled: isMyVideoEnabled ?? this.isMyVideoEnabled,
inviteHash: inviteHash ?? this.inviteHash,
);