copyWith method
StarTransactionTypeBotInvoiceSale
copyWith({
- int? userId,
- ProductInfo? productInfo,
- String? invoicePayload,
- 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,
);