copyWith method

  1. @override
MessageGiveawayPrizeStars copyWith({
  1. int? starCount,
  2. String? transactionId,
  3. int? boostedChatId,
  4. int? giveawayMessageId,
  5. bool? isUnclaimed,
  6. 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,
);