copyWith method

  1. @override
StarTransactionTypeBotInvoiceSale copyWith({
  1. int? userId,
  2. ProductInfo? productInfo,
  3. String? invoicePayload,
  4. AffiliateInfo? affiliate()?,
})
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
StarTransactionTypeBotInvoiceSale copyWith({
  int? userId,
  ProductInfo? productInfo,
  String? invoicePayload,
  AffiliateInfo? Function()? affiliate,
}) => StarTransactionTypeBotInvoiceSale(
  userId: userId ?? this.userId,
  productInfo: productInfo ?? this.productInfo,
  invoicePayload: invoicePayload ?? this.invoicePayload,
  affiliate: affiliate != null ? affiliate() : this.affiliate,
);