copyWith method

ScanData copyWith({
  1. String? errorMessage,
  2. bool? isGS1,
  3. String? uncategorizedString,
  4. int? uncategorizedInt,
  5. double? uncategorizedDouble,
  6. String? materialNumber,
  7. String? plant,
  8. String? storageLocation,
  9. String? equipmentNumber,
  10. String? gtin,
  11. String? batch,
  12. DateTime? productionDate,
  13. DateTime? dueDate,
  14. DateTime? packagingDate,
  15. DateTime? bestBeforeDate,
  16. DateTime? expirationDate,
  17. String? variantNumber,
  18. String? serialNumber,
  19. String? additionalProductId,
  20. double? quantity,
  21. double? netWeightKg,
  22. double? netWeightPounds,
  23. double? lengthMeters,
  24. double? widthMeters,
  25. double? depthMeters,
  26. double? areaSqMeters,
  27. double? volumeLitres,
  28. double? volumeCubicMeters,
  29. String? customersPurchaseOrderNumber,
  30. String? orderNumber,
  31. String? orderItemNumber,
  32. String? inboundDeliveryNumber,
  33. 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,
  );
}