copyWith method

Item copyWith({
  1. String? id,
  2. String? itemCategoryType,
  3. String? name,
  4. String? syncToken,
  5. String? invStartDate,
  6. String? type,
  7. double? qtyOnHand,
  8. ReferenceType? assetAccountRef,
  9. String? sku,
  10. bool? salesTaxIncluded,
  11. bool? trackQtyOnHand,
  12. ReferenceType? salesTaxCodeRef,
  13. ReferenceType? classRef,
  14. String? source,
  15. bool? purchaseTaxIncluded,
  16. String? description,
  17. double? abatementRate,
  18. bool? subItem,
  19. bool? taxable,
  20. String? uQCDisplayText,
  21. double? reorderPoint,
  22. String? purchaseDesc,
  23. ModificationMetaData? metaData,
  24. ReferenceType? prefVendorRef,
  25. bool? active,
  26. String? uQCId,
  27. double? reverseChargeRate,
  28. ReferenceType? purchaseTaxCodeRef,
  29. String? serviceType,
  30. double? purchaseCost,
  31. ReferenceType? parentRef,
  32. double? unitPrice,
  33. String? fullyQualifiedName,
  34. ReferenceType? expenseAccountRef,
  35. int? level,
  36. ReferenceType? incomeAccountRef,
  37. ReferenceType? taxClassificationRef,
})

Implementation

Item copyWith({
String? id,
String? itemCategoryType,
String? name,
String? syncToken,
String? invStartDate,
String? type,
double? qtyOnHand,
ReferenceType? assetAccountRef,
String? sku,
bool? salesTaxIncluded,
bool? trackQtyOnHand,
ReferenceType? salesTaxCodeRef,
ReferenceType? classRef,
String? source,
bool? purchaseTaxIncluded,
String? description,
double? abatementRate,
bool? subItem,
bool? taxable,
String? uQCDisplayText,
double? reorderPoint,
String? purchaseDesc,
ModificationMetaData? metaData,
ReferenceType? prefVendorRef,
bool? active,
String? uQCId,
double? reverseChargeRate,
ReferenceType? purchaseTaxCodeRef,
String? serviceType,
double? purchaseCost,
    ReferenceType? parentRef,
double? unitPrice,
String? fullyQualifiedName,
ReferenceType? expenseAccountRef,
int? level,
    ReferenceType? incomeAccountRef,
ReferenceType? taxClassificationRef
}) {
  return Item(
      id: id ?? this.id,
      itemCategoryType: itemCategoryType ?? this.itemCategoryType,
  name: name ?? this.name,
  syncToken: syncToken ?? this.syncToken,
  invStartDate: invStartDate ?? this.invStartDate,
  type: type ?? this.type,
  qtyOnHand: qtyOnHand ?? this.qtyOnHand,
  assetAccountRef: assetAccountRef ?? this.assetAccountRef,
  sku: sku ?? this.sku,
  salesTaxIncluded: salesTaxIncluded ?? this.salesTaxIncluded,
  trackQtyOnHand: trackQtyOnHand ?? this.trackQtyOnHand,
  salesTaxCodeRef: salesTaxCodeRef ?? this.salesTaxCodeRef,
  classRef: classRef ?? this.classRef,
  source: source ?? this.source,
  purchaseTaxIncluded: purchaseTaxIncluded ?? this.purchaseTaxIncluded,
  description: description ?? this.description,
  abatementRate: abatementRate ?? this.abatementRate,
  subItem: subItem ?? this.subItem,
  taxable: taxable ?? this.taxable,
  uQCDisplayText: uQCDisplayText ?? this.uQCDisplayText,
  reorderPoint: reorderPoint ?? this.reorderPoint,
  purchaseDesc: purchaseDesc ?? this.purchaseDesc,
  metaData: metaData ?? this.metaData,
  prefVendorRef: prefVendorRef ?? this.prefVendorRef,
  active: active ?? this.active,
  uQCId: uQCId ?? this.uQCId,
  reverseChargeRate: reverseChargeRate ?? this.reverseChargeRate,
  purchaseTaxCodeRef: purchaseTaxCodeRef ?? this.purchaseTaxCodeRef,
  serviceType: serviceType ?? this.serviceType,
  purchaseCost: purchaseCost ?? this.purchaseCost,
  parentRef: parentRef ?? this.parentRef,
  unitPrice: unitPrice ?? this.unitPrice,
  fullyQualifiedName: fullyQualifiedName ?? this.fullyQualifiedName,
  expenseAccountRef: expenseAccountRef ?? this.expenseAccountRef,
  level: level ?? this.level,
  incomeAccountRef: incomeAccountRef ?? this.incomeAccountRef,
  taxClassificationRef: taxClassificationRef ?? this.taxClassificationRef
  );
}