copyWith method

CreateChatSubscriptionInviteLink copyWith({
  1. int? chatId,
  2. String? name,
  3. StarSubscriptionPricing? subscriptionPricing,
})

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

Implementation

CreateChatSubscriptionInviteLink copyWith({
  int? chatId,
  String? name,
  StarSubscriptionPricing? subscriptionPricing,
}) => CreateChatSubscriptionInviteLink(
  chatId: chatId ?? this.chatId,
  name: name ?? this.name,
  subscriptionPricing: subscriptionPricing ?? this.subscriptionPricing,
);