copyWith method

PremiumStatePaymentOption copyWith({
  1. PremiumPaymentOption? paymentOption,
  2. bool? isCurrent,
  3. bool? isUpgrade,
  4. String? lastTransactionId,
})

Implementation

PremiumStatePaymentOption copyWith({
  PremiumPaymentOption? paymentOption,
  bool? isCurrent,
  bool? isUpgrade,
  String? lastTransactionId,
}) =>
    PremiumStatePaymentOption(
      paymentOption: paymentOption ?? this.paymentOption,
      isCurrent: isCurrent ?? this.isCurrent,
      isUpgrade: isUpgrade ?? this.isUpgrade,
      lastTransactionId: lastTransactionId ?? this.lastTransactionId,
    );