copyWith method
TelegramPaymentPurposePremiumGiveaway
copyWith({
- GiveawayParameters? parameters,
- String? currency,
- int? amount,
- int? winnerCount,
- int? monthCount,
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
TelegramPaymentPurposePremiumGiveaway copyWith({
GiveawayParameters? parameters,
String? currency,
int? amount,
int? winnerCount,
int? monthCount,
}) => TelegramPaymentPurposePremiumGiveaway(
parameters: parameters ?? this.parameters,
currency: currency ?? this.currency,
amount: amount ?? this.amount,
winnerCount: winnerCount ?? this.winnerCount,
monthCount: monthCount ?? this.monthCount,
);