copyWith method

  1. @override
TonTransactionTypeUpgradedGiftSale copyWith({
  1. int? userId,
  2. UpgradedGift? gift,
  3. int? commissionPerMille,
  4. int? commissionGramAmount,
  5. bool? viaOffer,
})
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
TonTransactionTypeUpgradedGiftSale copyWith({
  int? userId,
  UpgradedGift? gift,
  int? commissionPerMille,
  int? commissionGramAmount,
  bool? viaOffer,
}) => TonTransactionTypeUpgradedGiftSale(
  userId: userId ?? this.userId,
  gift: gift ?? this.gift,
  commissionPerMille: commissionPerMille ?? this.commissionPerMille,
  commissionGramAmount: commissionGramAmount ?? this.commissionGramAmount,
  viaOffer: viaOffer ?? this.viaOffer,
);