copyWith method
MessageGiveawayPrizeStars
copyWith({
- int? starCount,
- String? transactionId,
- int? boostedChatId,
- int? giveawayMessageId,
- bool? isUnclaimed,
- 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
MessageGiveawayPrizeStars copyWith({
int? starCount,
String? transactionId,
int? boostedChatId,
int? giveawayMessageId,
bool? isUnclaimed,
Sticker? Function()? sticker,
}) => MessageGiveawayPrizeStars(
starCount: starCount ?? this.starCount,
transactionId: transactionId ?? this.transactionId,
boostedChatId: boostedChatId ?? this.boostedChatId,
giveawayMessageId: giveawayMessageId ?? this.giveawayMessageId,
isUnclaimed: isUnclaimed ?? this.isUnclaimed,
sticker: sticker != null ? sticker() : this.sticker,
);