copyWith method

  1. @override
ChatEventMemberJoinedByRequest copyWith({
  1. int? approverUserId,
  2. ChatInviteLink? inviteLink,
})
override

Copy model with modified properties.

Properties:

  • approver_user_id: User identifier of the chat administrator, approved user join request
  • invite_link: Invite link used to join the chat; may be null

Implementation

@override
ChatEventMemberJoinedByRequest copyWith({
  int? approverUserId,
  ChatInviteLink? inviteLink,
}) =>
    ChatEventMemberJoinedByRequest(
      approverUserId: approverUserId ?? this.approverUserId,
      inviteLink: inviteLink ?? this.inviteLink,
    );