copyWith method
MessageUpgradedGiftPurchaseOfferRejected
copyWith({
- UpgradedGift? gift,
- GiftResalePrice? price,
- int? offerMessageId,
- bool? wasExpired,
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
MessageUpgradedGiftPurchaseOfferRejected copyWith({
UpgradedGift? gift,
GiftResalePrice? price,
int? offerMessageId,
bool? wasExpired,
}) => MessageUpgradedGiftPurchaseOfferRejected(
gift: gift ?? this.gift,
price: price ?? this.price,
offerMessageId: offerMessageId ?? this.offerMessageId,
wasExpired: wasExpired ?? this.wasExpired,
);