copyWith method
ScanData
copyWith({
- String? errorMessage,
- bool? isGS1,
- String? uncategorizedString,
- int? uncategorizedInt,
- double? uncategorizedDouble,
- String? materialNumber,
- String? plant,
- String? storageLocation,
- String? equipmentNumber,
- String? gtin,
- String? batch,
- DateTime? productionDate,
- DateTime? dueDate,
- DateTime? packagingDate,
- DateTime? bestBeforeDate,
- DateTime? expirationDate,
- String? variantNumber,
- String? serialNumber,
- String? additionalProductId,
- double? quantity,
- double? netWeightKg,
- double? netWeightPounds,
- double? lengthMeters,
- double? widthMeters,
- double? depthMeters,
- double? areaSqMeters,
- double? volumeLitres,
- double? volumeCubicMeters,
- String? customersPurchaseOrderNumber,
- String? orderNumber,
- String? orderItemNumber,
- String? inboundDeliveryNumber,
- String? outboundDeliveryNumber,
Implementation
ScanData copyWith({
String? errorMessage,
bool? isGS1,
String? uncategorizedString,
int? uncategorizedInt,
double? uncategorizedDouble,
String? materialNumber,
String? plant,
String? storageLocation,
String? equipmentNumber,
String? gtin,
String? batch,
DateTime? productionDate,
DateTime? dueDate,
DateTime? packagingDate,
DateTime? bestBeforeDate,
DateTime? expirationDate,
String? variantNumber,
String? serialNumber,
String? additionalProductId,
double? quantity,
double? netWeightKg,
double? netWeightPounds,
double? lengthMeters,
double? widthMeters,
double? depthMeters,
double? areaSqMeters,
double? volumeLitres,
double? volumeCubicMeters,
String? customersPurchaseOrderNumber,
String? orderNumber,
String? orderItemNumber,
String? inboundDeliveryNumber,
String? outboundDeliveryNumber,
}) {
return ScanData(
errorMessage: errorMessage ?? this.errorMessage,
isGS1: isGS1 ?? this.isGS1,
uncategorizedString: uncategorizedString ?? this.uncategorizedString,
uncategorizedInt: uncategorizedInt ?? this.uncategorizedInt,
uncategorizedDouble: uncategorizedDouble ?? this.uncategorizedDouble,
materialNumber: materialNumber ?? this.materialNumber,
plant: plant ?? this.plant,
storageLocation: storageLocation ?? this.storageLocation,
equipmentNumber: equipmentNumber ?? this.equipmentNumber,
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,
quantity: quantity ?? this.quantity,
netWeightKg: netWeightKg ?? this.netWeightKg,
netWeightPounds: netWeightPounds ?? this.netWeightPounds,
lengthMeters: lengthMeters ?? this.lengthMeters,
widthMeters: widthMeters ?? this.widthMeters,
depthMeters: depthMeters ?? this.depthMeters,
areaSqMeters: areaSqMeters ?? this.areaSqMeters,
volumeLitres: volumeLitres ?? this.volumeLitres,
volumeCubicMeters: volumeCubicMeters ?? this.volumeCubicMeters,
customersPurchaseOrderNumber:
customersPurchaseOrderNumber ?? this.customersPurchaseOrderNumber,
orderNumber: orderNumber ?? this.orderNumber,
orderItemNumber: orderItemNumber ?? this.orderItemNumber,
inboundDeliveryNumber:
inboundDeliveryNumber ?? this.inboundDeliveryNumber,
outboundDeliveryNumber:
outboundDeliveryNumber ?? this.outboundDeliveryNumber,
);
}