copyWith method

StorefrontPackageItem copyWith({
  1. List<WebApiModulesIntegrationsStorefrontProductImage>? images,
  2. int? productId,
  3. String? inventoryPackageInventoryId,
  4. String? iCode,
  5. String? description,
  6. String? inventoryId,
  7. bool? isPrimary,
  8. double? defaultQuantity,
  9. String? defaultQuantityColor,
  10. bool? isOption,
  11. bool? charge,
  12. bool? noChargePrint,
  13. bool? isRequired,
  14. String? optionColor,
  15. String? itemClass,
  16. String? itemTrackedBy,
  17. String? availFor,
  18. String? availFrom,
  19. double? orderBy,
  20. String? itemColor,
  21. String? isNestedComplete,
  22. String? inactive,
  23. String? warehouseId,
  24. String? parentId,
  25. String? packageItemClass,
  26. String? itemNonDiscountable,
  27. String? primaryInventoryId,
  28. String? unitId,
  29. String? packageId,
  30. WebApiModulesIntegrationsStorefrontProductAvailability? availability,
  31. double? dailyRate,
  32. double? weeklyRate,
  33. double? monthlyRate,
  34. double? dailyExtended,
  35. double? weeklyExtended,
  36. double? monthlyExtended,
  37. double? salesPrice,
  38. double? retail,
  39. String? currencyId,
  40. String? currencyCode,
  41. String? currencySymbol,
  42. String? dateStamp,
})

Implementation

StorefrontPackageItem copyWith({
  List<WebApiModulesIntegrationsStorefrontProductImage>? images,
  int? productId,
  String? inventoryPackageInventoryId,
  String? iCode,
  String? description,
  String? inventoryId,
  bool? isPrimary,
  double? defaultQuantity,
  String? defaultQuantityColor,
  bool? isOption,
  bool? charge,
  bool? noChargePrint,
  bool? isRequired,
  String? optionColor,
  String? itemClass,
  String? itemTrackedBy,
  String? availFor,
  String? availFrom,
  double? orderBy,
  String? itemColor,
  String? isNestedComplete,
  String? inactive,
  String? warehouseId,
  String? parentId,
  String? packageItemClass,
  String? itemNonDiscountable,
  String? primaryInventoryId,
  String? unitId,
  String? packageId,
  WebApiModulesIntegrationsStorefrontProductAvailability? availability,
  double? dailyRate,
  double? weeklyRate,
  double? monthlyRate,
  double? dailyExtended,
  double? weeklyExtended,
  double? monthlyExtended,
  double? salesPrice,
  double? retail,
  String? currencyId,
  String? currencyCode,
  String? currencySymbol,
  String? dateStamp,
}) {
  return StorefrontPackageItem(
    images: images ?? this.images,
    productId: productId ?? this.productId,
    inventoryPackageInventoryId:
        inventoryPackageInventoryId ?? this.inventoryPackageInventoryId,
    iCode: iCode ?? this.iCode,
    description: description ?? this.description,
    inventoryId: inventoryId ?? this.inventoryId,
    isPrimary: isPrimary ?? this.isPrimary,
    defaultQuantity: defaultQuantity ?? this.defaultQuantity,
    defaultQuantityColor: defaultQuantityColor ?? this.defaultQuantityColor,
    isOption: isOption ?? this.isOption,
    charge: charge ?? this.charge,
    noChargePrint: noChargePrint ?? this.noChargePrint,
    isRequired: isRequired ?? this.isRequired,
    optionColor: optionColor ?? this.optionColor,
    itemClass: itemClass ?? this.itemClass,
    itemTrackedBy: itemTrackedBy ?? this.itemTrackedBy,
    availFor: availFor ?? this.availFor,
    availFrom: availFrom ?? this.availFrom,
    orderBy: orderBy ?? this.orderBy,
    itemColor: itemColor ?? this.itemColor,
    isNestedComplete: isNestedComplete ?? this.isNestedComplete,
    inactive: inactive ?? this.inactive,
    warehouseId: warehouseId ?? this.warehouseId,
    parentId: parentId ?? this.parentId,
    packageItemClass: packageItemClass ?? this.packageItemClass,
    itemNonDiscountable: itemNonDiscountable ?? this.itemNonDiscountable,
    primaryInventoryId: primaryInventoryId ?? this.primaryInventoryId,
    unitId: unitId ?? this.unitId,
    packageId: packageId ?? this.packageId,
    availability: availability ?? this.availability,
    dailyRate: dailyRate ?? this.dailyRate,
    weeklyRate: weeklyRate ?? this.weeklyRate,
    monthlyRate: monthlyRate ?? this.monthlyRate,
    dailyExtended: dailyExtended ?? this.dailyExtended,
    weeklyExtended: weeklyExtended ?? this.weeklyExtended,
    monthlyExtended: monthlyExtended ?? this.monthlyExtended,
    salesPrice: salesPrice ?? this.salesPrice,
    retail: retail ?? this.retail,
    currencyId: currencyId ?? this.currencyId,
    currencyCode: currencyCode ?? this.currencyCode,
    currencySymbol: currencySymbol ?? this.currencySymbol,
    dateStamp: dateStamp ?? this.dateStamp,
  );
}