copyWith method

StarTransactionTypeUpgradedGiftSale copyWith({
  1. int? userId,
  2. UpgradedGift? gift,
  3. int? commissionPerMille,
  4. StarAmount? commissionStarAmount,
  5. bool? viaOffer,
})

Implementation

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,
);