copyWith method

  1. @override
MessageUpgradedGiftPurchaseOfferRejected copyWith({
  1. UpgradedGift? gift,
  2. GiftResalePrice? price,
  3. int? offerMessageId,
  4. 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,
);