copyWith method

PremiumPaymentOption copyWith({
  1. String? currency,
  2. int? amount,
  3. int? discountPercentage,
  4. int? monthCount,
  5. String? storeProductId,
  6. InternalLinkType? paymentLink,
})

Implementation

PremiumPaymentOption copyWith({
  String? currency,
  int? amount,
  int? discountPercentage,
  int? monthCount,
  String? storeProductId,
  InternalLinkType? paymentLink,
}) =>
    PremiumPaymentOption(
      currency: currency ?? this.currency,
      amount: amount ?? this.amount,
      discountPercentage: discountPercentage ?? this.discountPercentage,
      monthCount: monthCount ?? this.monthCount,
      storeProductId: storeProductId ?? this.storeProductId,
      paymentLink: paymentLink ?? this.paymentLink,
    );