copyWith method

GetChatInviteLinkMembers copyWith({
  1. int? chatId,
  2. String? inviteLink,
  3. bool? onlyWithExpiredSubscription,
  4. ChatInviteLinkMember? offsetMember()?,
  5. int? limit,
})

Returns a copy with the given fields replaced. For a nullable field pass a function, e.g. field: () => null to clear it.

Implementation

GetChatInviteLinkMembers copyWith({
  int? chatId,
  String? inviteLink,
  bool? onlyWithExpiredSubscription,
  ChatInviteLinkMember? Function()? offsetMember,
  int? limit,
}) => GetChatInviteLinkMembers(
  chatId: chatId ?? this.chatId,
  inviteLink: inviteLink ?? this.inviteLink,
  onlyWithExpiredSubscription:
      onlyWithExpiredSubscription ?? this.onlyWithExpiredSubscription,
  offsetMember: offsetMember != null ? offsetMember() : this.offsetMember,
  limit: limit ?? this.limit,
);