copyWith method

  1. @override
StarTransactionTypePremiumPurchase copyWith({
  1. int? userId,
  2. int? monthCount,
  3. Sticker? sticker()?,
})
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
StarTransactionTypePremiumPurchase copyWith({
  int? userId,
  int? monthCount,
  Sticker? Function()? sticker,
}) => StarTransactionTypePremiumPurchase(
  userId: userId ?? this.userId,
  monthCount: monthCount ?? this.monthCount,
  sticker: sticker != null ? sticker() : this.sticker,
);