copyWith method

  1. @override
UpdateNewChatJoinRequest copyWith({
  1. int? chatId,
  2. ChatJoinRequest? request,
  3. int? userChatId,
  4. ChatInviteLink? inviteLink()?,
  5. dynamic extra,
  6. int? clientId,
})
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
UpdateNewChatJoinRequest copyWith({
  int? chatId,
  ChatJoinRequest? request,
  int? userChatId,
  ChatInviteLink? Function()? inviteLink,
  dynamic extra,
  int? clientId,
}) =>
    UpdateNewChatJoinRequest(
      chatId: chatId ?? this.chatId,
      request: request ?? this.request,
      userChatId: userChatId ?? this.userChatId,
      inviteLink: inviteLink != null ? inviteLink() : this.inviteLink,
      extra: extra ?? this.extra,
      clientId: clientId ?? this.clientId,
    );