copyWith method
StarTransactionTypeUpgradedGiftSale
copyWith({
- int? userId,
- UpgradedGift? gift,
- int? commissionPerMille,
- StarAmount? commissionStarAmount,
- 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
StarTransactionTypeUpgradedGiftSale copyWith({
int? userId,
UpgradedGift? gift,
int? commissionPerMille,
StarAmount? commissionStarAmount,
bool? viaOffer,
}) => StarTransactionTypeUpgradedGiftSale(
userId: userId ?? this.userId,
gift: gift ?? this.gift,
commissionPerMille: commissionPerMille ?? this.commissionPerMille,
commissionStarAmount: commissionStarAmount ?? this.commissionStarAmount,
viaOffer: viaOffer ?? this.viaOffer,
);