copyWith method
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,
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,
);
}