copyWith method
ItemsData
copyWith({
- String? itemId,
- String? productId,
- String? brand,
- String? company,
- String? manufacture,
- String? manufactureSort,
- String? price,
- String? mrp,
- List<
PriceToShow> ? priceToShow, - String? batchNo,
- String? quantity,
- String? subTotal,
- String? discount,
- String? discountDisplay,
- String? discountPrice,
- String? totalTaxable,
- String? total,
- String? gst,
- String? sgst,
- String? cgst,
- String? igst,
- String? sgstPrice,
- String? cgstPrice,
- String? igstPrice,
- String? schemeMinPurchase,
- String? schemeProvide,
- String? unitsPerPackage,
- String? perUnitQuantity,
- String? packagingDisplay,
- String? isFree,
- String? extraClaimProduct,
- String? expSortDate,
- String? schemeDiscountPrice,
- String? schemeDiscount,
- String? discountAsPerFixedPrice,
- String? discountAsPerFixed,
- String? productDiscountPrice,
- String? productDiscount,
- String? productDiscountSpecialPrice,
- String? productDiscountSpecial,
- String? productDiscountSpecialCompanyPrice,
- String? productDiscountSpecialCompany,
Implementation
ItemsData copyWith({ String? itemId,
String? productId,
String? brand,
String? company,
String? manufacture,
String? manufactureSort,
String? price,
String? mrp,
List<PriceToShow>? priceToShow,
String? batchNo,
String? quantity,
String? subTotal,
String? discount,
String? discountDisplay,
String? discountPrice,
String? totalTaxable,
String? total,
String? gst,
String? sgst,
String? cgst,
String? igst,
String? sgstPrice,
String? cgstPrice,
String? igstPrice,
String? schemeMinPurchase,
String? schemeProvide,
String? unitsPerPackage,
String? perUnitQuantity,
String? packagingDisplay,
String? isFree,
String? extraClaimProduct,
String? expSortDate,
String? schemeDiscountPrice,
String? schemeDiscount,
String? discountAsPerFixedPrice,
String? discountAsPerFixed,
String? productDiscountPrice,
String? productDiscount,
String? productDiscountSpecialPrice,
String? productDiscountSpecial,
String? productDiscountSpecialCompanyPrice,
String? productDiscountSpecialCompany,
}) => ItemsData( itemId: itemId ?? this.itemId,
productId: productId ?? this.productId,
brand: brand ?? this.brand,
company: company ?? this.company,
manufacture: manufacture ?? this.manufacture,
manufactureSort: manufactureSort ?? this.manufactureSort,
price: price ?? this.price,
mrp: mrp ?? this.mrp,
priceToShow: priceToShow ?? this.priceToShow,
batchNo: batchNo ?? this.batchNo,
quantity: quantity ?? this.quantity,
subTotal: subTotal ?? this.subTotal,
discount: discount ?? this.discount,
discountDisplay: discountDisplay ?? this.discountDisplay,
discountPrice: discountPrice ?? this.discountPrice,
totalTaxable: totalTaxable ?? this.totalTaxable,
total: total ?? this.total,
gst: gst ?? this.gst,
sgst: sgst ?? this.sgst,
cgst: cgst ?? this.cgst,
igst: igst ?? this.igst,
sgstPrice: sgstPrice ?? this.sgstPrice,
cgstPrice: cgstPrice ?? this.cgstPrice,
igstPrice: igstPrice ?? this.igstPrice,
schemeMinPurchase: schemeMinPurchase ?? this.schemeMinPurchase,
schemeProvide: schemeProvide ?? this.schemeProvide,
unitsPerPackage: unitsPerPackage ?? this.unitsPerPackage,
perUnitQuantity: perUnitQuantity ?? this.perUnitQuantity,
packagingDisplay: packagingDisplay ?? this.packagingDisplay,
isFree: isFree ?? this.isFree,
extraClaimProduct : extraClaimProduct ?? this.extraClaimProduct,
expSortDate: expSortDate ?? this.expSortDate,
schemeDiscountPrice : schemeDiscountPrice ?? this.schemeDiscountPrice,
schemeDiscount : schemeDiscount ?? this.schemeDiscount,
discountAsPerFixedPrice : discountAsPerFixedPrice ?? this.discountAsPerFixedPrice,
discountAsPerFixed : discountAsPerFixed ?? this.discountAsPerFixed,
productDiscountPrice : productDiscountPrice ?? this.productDiscountPrice,
productDiscount : productDiscount ?? this.productDiscount,
productDiscountSpecialPrice : productDiscountSpecialPrice ?? this.productDiscountSpecialPrice,
productDiscountSpecial : productDiscountSpecial ?? this.productDiscountSpecial,
productDiscountSpecialCompanyPrice : productDiscountSpecialCompanyPrice ?? this.productDiscountSpecialCompanyPrice,
productDiscountSpecialCompany : productDiscountSpecialCompany ?? this.productDiscountSpecialCompany
);