copyWith method

  1. @override
StarTransactionTypeBotInvoicePurchase copyWith({
  1. int? userId,
  2. ProductInfo? productInfo,
})
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
StarTransactionTypeBotInvoicePurchase copyWith({
  int? userId,
  ProductInfo? productInfo,
}) => StarTransactionTypeBotInvoicePurchase(
  userId: userId ?? this.userId,
  productInfo: productInfo ?? this.productInfo,
);