copyWith method

Product copyWith({
  1. String? productId,
  2. Category? category,
  3. ColorApi? color,
  4. Manufacture? manufacture,
  5. MarketedBy? marketedBy,
  6. Company? company,
  7. Division? division,
  8. String? name,
  9. String? brand,
  10. String? composition,
  11. String? unitsPerPackage,
  12. String? perUnitQuantity,
  13. String? packagingDisplay,
  14. String? quantity,
  15. ShowQuantity? showQuantity,
  16. String? returnQuantity,
  17. String? minPurchaseQty,
  18. String? maxPurchaseQty,
  19. String? mrp,
  20. List<PriceToShow>? priceToShow,
  21. String? discount,
  22. String? gst,
  23. String? batchNo,
  24. String? manufacturingDate,
  25. String? expiryDate,
  26. String? barcode,
  27. String? scheme,
  28. String? schemeMinPurchase,
  29. String? schemeProvide,
  30. String? dosageStrength,
  31. String? dosageForm,
  32. String? packagingType,
  33. String? description,
  34. String? storageConditions,
  35. 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,
);