copyWith method
MessagePremiumGiveaway
copyWith({
- PremiumGiveawayParameters? parameters,
- int? winnerCount,
- int? monthCount,
- Sticker? sticker()?,
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
MessagePremiumGiveaway copyWith({
PremiumGiveawayParameters? parameters,
int? winnerCount,
int? monthCount,
Sticker? Function()? sticker,
}) =>
MessagePremiumGiveaway(
parameters: parameters ?? this.parameters,
winnerCount: winnerCount ?? this.winnerCount,
monthCount: monthCount ?? this.monthCount,
sticker: sticker != null ? sticker() : this.sticker,
);