copyWith method

ScanData copyWith({
  1. String? originalString,
  2. String? errorMessage,
  3. bool? isGS1,
  4. String? sscc,
  5. String? gtin,
  6. String? batch,
  7. DateTime? productionDate,
  8. DateTime? dueDate,
  9. DateTime? packagingDate,
  10. DateTime? bestBeforeDate,
  11. DateTime? expirationDate,
  12. String? variantNumber,
  13. String? serialNumber,
  14. String? additionalProductId,
  15. String? customerPartNumber,
  16. double? numberOfPieces,
  17. double? netWeightKg,
  18. double? lengthMeters,
  19. double? widthMeters,
  20. double? depthMeters,
  21. double? areaSqMeters,
  22. double? volumeLitres,
  23. double? volumeCubicMeters,
  24. double? netWeightPounds,
  25. String? customersPurchaseOrderNumber,
  26. DateTime? productionDateAndTime,
  27. String? packingMaterialSupplierID,
  28. String? packingMaterialSupplierPlant,
  29. String? plant,
  30. String? storageLocation,
  31. String? functionalLocation,
  32. String? storageBin,
  33. String? materialNumber,
  34. String? equipmentNumber,
  35. String? orderNumber,
  36. String? orderItemNumber,
  37. String? inboundDeliveryNumber,
  38. String? outboundDeliveryNumber,
  39. String? uncategorizedString,
  40. 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,
  );
}