copyWith method
SellThruProductDataModel
copyWith({
- int? page,
- int? size,
- int? totalElements,
- int? totalPages,
- bool? last,
- bool? first,
- double? totalNetAmount,
- double? localCurrencyGrandTotal,
- String? currency,
- String? localCurrency,
- double? totalDiscount,
- double? overallSaleTaxPercentage,
- int? stockOrderOverallSaleTaxPercentage,
- double? totalAmount,
- double? totalTax,
- double? totalAmountPaid,
- double? ctw,
- String? paymentStatus,
- SortModel? sort,
- String? transactionId,
- String? paymentMethod,
- String? salesTax,
- String? ctwNegativeTax,
- String? dateTime,
- String? invoiceId,
- String? externalId,
- String? taxPercentage,
- double? netCommission,
- List<
ProductContentModel> ? content,
Implementation
SellThruProductDataModel copyWith(
{int? page,
int? size,
int? totalElements,
int? totalPages,
bool? last,
bool? first,
double? totalNetAmount,
double? localCurrencyGrandTotal,
String? currency,
String? localCurrency,
double? totalDiscount,
double? overallSaleTaxPercentage,
int? stockOrderOverallSaleTaxPercentage,
double? totalAmount,
double? totalTax,
double? totalAmountPaid,
double? ctw,
String? paymentStatus,
SortModel? sort,
String? transactionId,
String? paymentMethod,
String? salesTax,
String? ctwNegativeTax,
String? dateTime,
String? invoiceId,
String? externalId,
String? taxPercentage,
double? netCommission,
List<ProductContentModel>? content}) {
return SellThruProductDataModel(
page: page ?? this.page,
size: size ?? this.size,
totalElements: totalElements ?? this.totalElements,
totalPages: totalPages ?? this.totalPages,
last: last ?? this.last,
totalNetAmount: totalNetAmount ?? this.totalNetAmount,
totalDiscount: totalDiscount ?? this.totalDiscount,
localCurrency: localCurrency ?? this.localCurrency,
localCurrencyGrandTotal:
localCurrencyGrandTotal ?? this.localCurrencyGrandTotal,
currency: currency ?? this.currency,
first: first ?? this.first,
totalAmount: totalAmount ?? this.totalAmount,
totalTax: totalTax ?? this.totalTax,
overallSaleTaxPercentage:
overallSaleTaxPercentage ?? this.overallSaleTaxPercentage,
stockOrderOverallSaleTaxPercentage: stockOrderOverallSaleTaxPercentage ??
this.stockOrderOverallSaleTaxPercentage,
totalAmountPaid: totalAmountPaid,
paymentStatus: paymentStatus ?? this.paymentStatus,
sort: sort ?? this.sort,
transactionId: transactionId ?? this.transactionId,
paymentMethod: paymentMethod ?? this.paymentMethod,
ctwNegativeTax: ctwNegativeTax ?? this.ctwNegativeTax,
salesTax: salesTax ?? this.salesTax,
ctw: ctw ?? this.ctw,
dateTime: dateTime ?? this.dateTime,
invoiceId: invoiceId ?? this.invoiceId,
externalId: externalId ?? this.externalId,
content: content ?? this.content,
taxPercentage: taxPercentage ?? this.taxPercentage,
netCommission: netCommission ?? this.netCommission,
);
}