copyWith method

EditChatInviteLink copyWith({
  1. int? chatId,
  2. String? inviteLink,
  3. String? name,
  4. int? expirationDate,
  5. int? memberLimit,
  6. bool? createsJoinRequest,
})

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,
);