copyWith method

  1. @override
StorePaymentPurposePremiumGiftCodes copyWith({
  1. int? boostedChatId,
  2. String? currency,
  3. int? amount,
  4. List<int>? userIds,
})
override

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

Implementation

@override
StorePaymentPurposePremiumGiftCodes copyWith({
  int? boostedChatId,
  String? currency,
  int? amount,
  List<int>? userIds,
}) =>
    StorePaymentPurposePremiumGiftCodes(
      boostedChatId: boostedChatId ?? this.boostedChatId,
      currency: currency ?? this.currency,
      amount: amount ?? this.amount,
      userIds: userIds ?? this.userIds,
    );