copyWith method

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

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