copyWith method
TonTransactionTypeUpgradedGiftSale
copyWith({
- int? userId,
- UpgradedGift? gift,
- int? commissionPerMille,
- int? commissionGramAmount,
- 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,
);