copyWith method

PremiumGiftCodePaymentOption copyWith({
  1. String? currency,
  2. int? amount,
  3. int? userCount,
  4. int? monthCount,
  5. String? storeProductId,
  6. int? storeProductQuantity,
})

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

Implementation

PremiumGiftCodePaymentOption copyWith({
  String? currency,
  int? amount,
  int? userCount,
  int? monthCount,
  String? storeProductId,
  int? storeProductQuantity,
}) =>
    PremiumGiftCodePaymentOption(
      currency: currency ?? this.currency,
      amount: amount ?? this.amount,
      userCount: userCount ?? this.userCount,
      monthCount: monthCount ?? this.monthCount,
      storeProductId: storeProductId ?? this.storeProductId,
      storeProductQuantity: storeProductQuantity ?? this.storeProductQuantity,
    );