copyWith method
PushMessageContentGiveaway
copyWith({
- int? winnerCount,
- GiveawayPrize? prize()?,
- bool? isPinned,
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
PushMessageContentGiveaway copyWith({
int? winnerCount,
GiveawayPrize? Function()? prize,
bool? isPinned,
}) => PushMessageContentGiveaway(
winnerCount: winnerCount ?? this.winnerCount,
prize: prize != null ? prize() : this.prize,
isPinned: isPinned ?? this.isPinned,
);