BarcodeData class

This class holds detailed information about a scanned barcode, including:

  • The processed barcode data (data), which may have undergone transformations based on scanner settings (e.g., preamble, prefix, suffix, postamble).
  • The raw byte representation (dataBytes) of the processed barcode data.
  • The quantity of the scanned item (quantity), which can be negative to indicate removal.
  • Information about the barcode symbology (symbology and symbologyId).
  • The time of the scan (timeOfScan).
  • The ID of the scanning device (deviceId).

Constructors

BarcodeData({required String data, required List<int> dataBytes, required int quantity, required int symbologyId, required String symbology, required String timeOfScan, required String deviceId})
Constructs a BarcodeData object containing the processed barcode data and other details.

Properties

data String
The processed barcode data retrieved from the scan.
final
dataBytes List<int>
The byte representation of the processed barcode data retrieved from the scan.
final
deviceId String
The device ID of the scanner that scanned the barcode.
final
hashCode int
The hash code for this object.
no setterinherited
quantity int
The quantity of the scanned item.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
symbology String
The name of the barcode symbology used for the scan.
final
symbologyId int
The ID of the barcode symbology used for the scan.
final
timeOfScan String
The time the barcode was scanned.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited