copyWith method
ScanData
copyWith({
- String? originalString,
- String? errorMessage,
- bool? isGS1,
- String? sscc,
- String? gtin,
- String? batch,
- DateTime? productionDate,
- DateTime? dueDate,
- DateTime? packagingDate,
- DateTime? bestBeforeDate,
- DateTime? expirationDate,
- String? variantNumber,
- String? serialNumber,
- String? additionalProductId,
- String? customerPartNumber,
- double? numberOfPieces,
- double? netWeightKg,
- double? lengthMeters,
- double? widthMeters,
- double? depthMeters,
- double? areaSqMeters,
- double? volumeLitres,
- double? volumeCubicMeters,
- double? netWeightPounds,
- String? customersPurchaseOrderNumber,
- DateTime? productionDateAndTime,
- String? packingMaterialSupplierID,
- String? packingMaterialSupplierPlant,
- String? plant,
- String? storageLocation,
- String? functionalLocation,
- String? storageBin,
- String? materialNumber,
- String? equipmentNumber,
- String? orderNumber,
- String? orderItemNumber,
- String? inboundDeliveryNumber,
- String? outboundDeliveryNumber,
- String? uncategorizedString,
- int? uncategorizedInt,
Implementation
ScanData copyWith({
String? originalString,
String? errorMessage,
bool? isGS1,
String? sscc,
String? gtin,
String? batch,
DateTime? productionDate,
DateTime? dueDate,
DateTime? packagingDate,
DateTime? bestBeforeDate,
DateTime? expirationDate,
String? variantNumber,
String? serialNumber,
String? additionalProductId,
String? customerPartNumber,
double? numberOfPieces,
double? netWeightKg,
double? lengthMeters,
double? widthMeters,
double? depthMeters,
double? areaSqMeters,
double? volumeLitres,
double? volumeCubicMeters,
double? netWeightPounds,
String? customersPurchaseOrderNumber,
DateTime? productionDateAndTime,
String? packingMaterialSupplierID,
String? packingMaterialSupplierPlant,
String? plant,
String? storageLocation,
String? functionalLocation,
String? storageBin,
String? materialNumber,
String? equipmentNumber,
String? orderNumber,
String? orderItemNumber,
String? inboundDeliveryNumber,
String? outboundDeliveryNumber,
String? uncategorizedString,
int? uncategorizedInt,
}) {
return ScanData(
originalString: originalString ?? this.originalString,
errorMessage: errorMessage ?? this.errorMessage,
isGS1: isGS1 ?? this.isGS1,
sscc: sscc ?? this.sscc,
gtin: gtin ?? this.gtin,
batch: batch ?? this.batch,
productionDate: productionDate ?? this.productionDate,
dueDate: dueDate ?? this.dueDate,
packagingDate: packagingDate ?? this.packagingDate,
bestBeforeDate: bestBeforeDate ?? this.bestBeforeDate,
expirationDate: expirationDate ?? this.expirationDate,
variantNumber: variantNumber ?? this.variantNumber,
serialNumber: serialNumber ?? this.serialNumber,
additionalProductId: additionalProductId ?? this.additionalProductId,
customerPartNumber: customerPartNumber ?? this.customerPartNumber,
numberOfPieces: numberOfPieces ?? this.numberOfPieces,
netWeightKg: netWeightKg ?? this.netWeightKg,
lengthMeters: lengthMeters ?? this.lengthMeters,
widthMeters: widthMeters ?? this.widthMeters,
depthMeters: depthMeters ?? this.depthMeters,
areaSqMeters: areaSqMeters ?? this.areaSqMeters,
volumeLitres: volumeLitres ?? this.volumeLitres,
volumeCubicMeters: volumeCubicMeters ?? this.volumeCubicMeters,
netWeightPounds: netWeightPounds ?? this.netWeightPounds,
customersPurchaseOrderNumber:
customersPurchaseOrderNumber ?? this.customersPurchaseOrderNumber,
productionDateAndTime:
productionDateAndTime ?? this.productionDateAndTime,
packingMaterialSupplierID:
packingMaterialSupplierID ?? this.packingMaterialSupplierID,
packingMaterialSupplierPlant:
packingMaterialSupplierPlant ?? this.packingMaterialSupplierPlant,
plant: plant ?? this.plant,
storageLocation: storageLocation ?? this.storageLocation,
functionalLocation: functionalLocation ?? this.functionalLocation,
storageBin: storageBin ?? this.storageBin,
materialNumber: materialNumber ?? this.materialNumber,
equipmentNumber: equipmentNumber ?? this.equipmentNumber,
orderNumber: orderNumber ?? this.orderNumber,
orderItemNumber: orderItemNumber ?? this.orderItemNumber,
inboundDeliveryNumber:
inboundDeliveryNumber ?? this.inboundDeliveryNumber,
outboundDeliveryNumber:
outboundDeliveryNumber ?? this.outboundDeliveryNumber,
uncategorizedString: uncategorizedString ?? this.uncategorizedString,
uncategorizedInt: uncategorizedInt ?? this.uncategorizedInt,
);
}