copyWith method

MessageUpgradedGiftOnChainPurchaseOffer copyWith({
  1. UpgradedGift? gift,
  2. bool? isBuyer,
  3. GiftOnChainPurchaseOfferState? state,
  4. String? offerAddress,
  5. int? gramAmount,
  6. int? feeBasisPoints,
  7. int? expirationDate,
  8. int? offerMessageId,
})

Implementation

MessageUpgradedGiftOnChainPurchaseOffer copyWith({
  UpgradedGift? gift,
  bool? isBuyer,
  GiftOnChainPurchaseOfferState? state,
  String? offerAddress,
  int? gramAmount,
  int? feeBasisPoints,
  int? expirationDate,
  int? offerMessageId,
}) =>
    MessageUpgradedGiftOnChainPurchaseOffer(
      gift: gift ?? this.gift,
      isBuyer: isBuyer ?? this.isBuyer,
      state: state ?? this.state,
      offerAddress: offerAddress ?? this.offerAddress,
      gramAmount: gramAmount ?? this.gramAmount,
      feeBasisPoints: feeBasisPoints ?? this.feeBasisPoints,
      expirationDate: expirationDate ?? this.expirationDate,
      offerMessageId: offerMessageId ?? this.offerMessageId,
    );