copyWith method

  1. @override
ChatEventMemberJoinedByInviteLink copyWith({
  1. ChatInviteLink? inviteLink,
  2. bool? viaChatFolderInviteLink,
})
override

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

Implementation

@override
ChatEventMemberJoinedByInviteLink copyWith({
  ChatInviteLink? inviteLink,
  bool? viaChatFolderInviteLink,
}) => ChatEventMemberJoinedByInviteLink(
  inviteLink: inviteLink ?? this.inviteLink,
  viaChatFolderInviteLink:
      viaChatFolderInviteLink ?? this.viaChatFolderInviteLink,
);