copyWith method
Returns a copy with the given fields replaced. For a nullable
field pass a function, e.g. field: () => null to clear it.
Implementation
PremiumGiftPaymentOption copyWith({
String? currency,
int? amount,
int? starCount,
int? discountPercentage,
int? monthCount,
String? storeProductId,
Sticker? Function()? 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 != null ? sticker() : this.sticker,
);