copyWith method
Returns a copy with the given fields replaced. For a nullable
field pass a function, e.g. field: () => null to clear it.
Implementation
EditChatInviteLink copyWith({
int? chatId,
String? inviteLink,
String? name,
int? expirationDate,
int? memberLimit,
bool? createsJoinRequest,
}) =>
EditChatInviteLink(
chatId: chatId ?? this.chatId,
inviteLink: inviteLink ?? this.inviteLink,
name: name ?? this.name,
expirationDate: expirationDate ?? this.expirationDate,
memberLimit: memberLimit ?? this.memberLimit,
createsJoinRequest: createsJoinRequest ?? this.createsJoinRequest,
);