copyWith method
UpdateNewChatJoinRequest
copyWith({
- int? chatId,
- ChatJoinRequest? request,
- int? userChatId,
- ChatInviteLink? inviteLink()?,
- dynamic extra,
- 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,
);