copyWith method
PremiumState
copyWith({
- FormattedText? state,
- List<
PremiumStatePaymentOption> ? paymentOptions, - List<
PremiumFeaturePromotionAnimation> ? animations, - List<
BusinessFeaturePromotionAnimation> ? businessAnimations,
Implementation
PremiumState copyWith({
FormattedText? state,
List<PremiumStatePaymentOption>? paymentOptions,
List<PremiumFeaturePromotionAnimation>? animations,
List<BusinessFeaturePromotionAnimation>? businessAnimations,
}) => PremiumState(
state: state ?? this.state,
paymentOptions: paymentOptions ?? this.paymentOptions,
animations: animations ?? this.animations,
businessAnimations: businessAnimations ?? this.businessAnimations,
);