copyWith method

  1. @override
StorePaymentPurposeStarGiveaway copyWith({
  1. GiveawayParameters? parameters,
  2. String? currency,
  3. int? amount,
  4. int? winnerCount,
  5. int? starCount,
})
override

Returns a copy with the given fields replaced. For a nullable field pass a function, e.g. field: () => null to clear it.

Implementation

@override
StorePaymentPurposeStarGiveaway copyWith({
  GiveawayParameters? parameters,
  String? currency,
  int? amount,
  int? winnerCount,
  int? starCount,
}) => StorePaymentPurposeStarGiveaway(
  parameters: parameters ?? this.parameters,
  currency: currency ?? this.currency,
  amount: amount ?? this.amount,
  winnerCount: winnerCount ?? this.winnerCount,
  starCount: starCount ?? this.starCount,
);