copyWith method

PremiumGiftPaymentOption copyWith({
  1. String? currency,
  2. int? amount,
  3. int? starCount,
  4. int? discountPercentage,
  5. int? monthCount,
  6. String? storeProductId,
  7. Sticker? sticker,
})

Implementation

PremiumGiftPaymentOption copyWith({
  String? currency,
  int? amount,
  int? starCount,
  int? discountPercentage,
  int? monthCount,
  String? storeProductId,
  Sticker? sticker,
}) =>
    PremiumGiftPaymentOption(
      currency: currency ?? this.currency,
      amount: amount ?? this.amount,
      starCount: starCount ?? this.starCount,
      discountPercentage: discountPercentage ?? this.discountPercentage,
      monthCount: monthCount ?? this.monthCount,
      storeProductId: storeProductId ?? this.storeProductId,
      sticker: sticker ?? this.sticker,
    );