copyWith method

PremiumState copyWith({
  1. FormattedText? state,
  2. List<PremiumStatePaymentOption>? paymentOptions,
  3. List<PremiumFeaturePromotionAnimation>? animations,
  4. dynamic extra,
  5. int? clientId,
})

Implementation

PremiumState copyWith({
  FormattedText? state,
  List<PremiumStatePaymentOption>? paymentOptions,
  List<PremiumFeaturePromotionAnimation>? animations,
  dynamic extra,
  int? clientId,
}) =>
    PremiumState(
      state: state ?? this.state,
      paymentOptions: paymentOptions ?? this.paymentOptions,
      animations: animations ?? this.animations,
      extra: extra ?? this.extra,
      clientId: clientId ?? this.clientId,
    );