copyWith method

JoinVideoChat copyWith({
  1. int? groupCallId,
  2. MessageSender? participantId()?,
  3. GroupCallJoinParameters? joinParameters,
  4. 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,
);