copyWith method
Product
copyWith({
- String? productId,
- Category? category,
- ColorApi? color,
- Manufacture? manufacture,
- MarketedBy? marketedBy,
- Company? company,
- Division? division,
- String? name,
- String? brand,
- String? composition,
- String? unitsPerPackage,
- String? perUnitQuantity,
- String? packagingDisplay,
- String? quantity,
- ShowQuantity? showQuantity,
- String? returnQuantity,
- String? minPurchaseQty,
- String? maxPurchaseQty,
- String? mrp,
- List<
PriceToShow> ? priceToShow, - String? discount,
- String? gst,
- String? batchNo,
- String? manufacturingDate,
- String? expiryDate,
- String? barcode,
- String? scheme,
- String? schemeMinPurchase,
- String? schemeProvide,
- String? dosageStrength,
- String? dosageForm,
- String? packagingType,
- String? description,
- String? storageConditions,
- String? masterUserId,
Implementation
Product copyWith({ String? productId,
Category? category,
ColorApi? color,
Manufacture? manufacture,
MarketedBy? marketedBy,
Company? company,
Division? division,
String? name,
String? brand,
String? composition,
String? unitsPerPackage,
String? perUnitQuantity,
String? packagingDisplay,
String? quantity,
ShowQuantity? showQuantity,
String? returnQuantity,
String? minPurchaseQty,
String? maxPurchaseQty,
String? mrp,
List<PriceToShow>? priceToShow,
String? discount,
String? gst,
String? batchNo,
String? manufacturingDate,
String? expiryDate,
String? barcode,
String? scheme,
String? schemeMinPurchase,
String? schemeProvide,
String? dosageStrength,
String? dosageForm,
String? packagingType,
String? description,
String? storageConditions,
String? masterUserId,
}) => Product( productId: productId ?? this.productId,
category: category ?? this.category,
color : color ?? this.color,
manufacture: manufacture ?? this.manufacture,
marketedBy: marketedBy ?? this.marketedBy,
company: company ?? this.company,
division: division ?? this.division,
name: name ?? this.name,
brand: brand ?? this.brand,
composition: composition ?? this.composition,
unitsPerPackage: unitsPerPackage ?? this.unitsPerPackage,
perUnitQuantity: perUnitQuantity ?? this.perUnitQuantity,
packagingDisplay: packagingDisplay ?? this.packagingDisplay,
quantity: quantity ?? this.quantity,
showQuantity: showQuantity ?? this.showQuantity,
returnQuantity: returnQuantity ?? this.returnQuantity,
minPurchaseQty: minPurchaseQty ?? this.minPurchaseQty,
maxPurchaseQty: maxPurchaseQty ?? this.maxPurchaseQty,
mrp: mrp ?? this.mrp,
priceToShow: priceToShow ?? this.priceToShow,
discount: discount ?? this.discount,
gst: gst ?? this.gst,
batchNo: batchNo ?? this.batchNo,
manufacturingDate: manufacturingDate ?? this.manufacturingDate,
expiryDate: expiryDate ?? this.expiryDate,
barcode: barcode ?? this.barcode,
scheme: scheme ?? this.scheme,
schemeMinPurchase: schemeMinPurchase ?? this.schemeMinPurchase,
schemeProvide: schemeProvide ?? this.schemeProvide,
dosageStrength: dosageStrength ?? this.dosageStrength,
dosageForm: dosageForm ?? this.dosageForm,
packagingType: packagingType ?? this.packagingType,
description: description ?? this.description,
storageConditions: storageConditions ?? this.storageConditions,
masterUserId: masterUserId ?? this.masterUserId,
);