copyWith method
PrepaidGiveaway
copyWith({
- int? id,
- int? winnerCount,
- GiveawayPrize? prize,
- int? boostCount,
- int? paymentDate,
Returns a copy with the given fields replaced. For a nullable
field pass a function, e.g. field: () => null to clear it.
Implementation
PrepaidGiveaway copyWith({
int? id,
int? winnerCount,
GiveawayPrize? prize,
int? boostCount,
int? paymentDate,
}) => PrepaidGiveaway(
id: id ?? this.id,
winnerCount: winnerCount ?? this.winnerCount,
prize: prize ?? this.prize,
boostCount: boostCount ?? this.boostCount,
paymentDate: paymentDate ?? this.paymentDate,
);