copyWith method

StarGiveawayPaymentOption copyWith({
  1. String? currency,
  2. int? amount,
  3. int? starCount,
  4. String? storeProductId,
  5. int? yearlyBoostCount,
  6. List<StarGiveawayWinnerOption>? winnerOptions,
  7. bool? isDefault,
  8. bool? isAdditional,
})

Implementation

StarGiveawayPaymentOption copyWith({
  String? currency,
  int? amount,
  int? starCount,
  String? storeProductId,
  int? yearlyBoostCount,
  List<StarGiveawayWinnerOption>? winnerOptions,
  bool? isDefault,
  bool? isAdditional,
}) => StarGiveawayPaymentOption(
  currency: currency ?? this.currency,
  amount: amount ?? this.amount,
  starCount: starCount ?? this.starCount,
  storeProductId: storeProductId ?? this.storeProductId,
  yearlyBoostCount: yearlyBoostCount ?? this.yearlyBoostCount,
  winnerOptions: winnerOptions ?? this.winnerOptions,
  isDefault: isDefault ?? this.isDefault,
  isAdditional: isAdditional ?? this.isAdditional,
);