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