BarcodeData constructor

BarcodeData({
  1. required String data,
  2. required List<int> dataBytes,
  3. required int quantity,
  4. required int symbologyId,
  5. required String symbology,
  6. required String timeOfScan,
  7. required String deviceId,
})

Constructs a BarcodeData object containing the processed barcode data and other details.

  • data: The processed barcode data.
  • quantity: The quantity of the scanned item. Can be negative to indicate removal.
  • symbologyId: The numeric ID of the symbology used for the scan.
  • symbology: The human-readable name of the symbology.
  • timeOfScan: The timestamp when the scan occurred.

Implementation

BarcodeData({
  required this.data,
  required this.dataBytes,
  required this.quantity,
  required this.symbologyId,
  required this.symbology,
  required this.timeOfScan,
  required this.deviceId,
});