ScanData class

Represents a single decoded barcode within a ScanDataCollection.

Each element in ScanDataCollection.scanData is a ScanData instance containing the decoded string, its symbology, the raw bytes, and the timestamp at which the label was scanned.

See: https://techdocs.zebra.com/emdk-for-android/13-0/api/reference/com/symbol/emdk/barcode/scandatacollection.scandata

Constructors

ScanData({String? data, Uint8List? rawData, LabelType? labelType, String? timeStamp})
const
ScanData.fromMap(Map<String, dynamic> map)
Creates a ScanData from a Map received via the platform channel.
factory

Properties

data String?
The decoded barcode data as a string.
final
hashCode int
The hash code for this object.
no setterinherited
labelType LabelType?
The symbology of the decoded barcode.
final
rawData Uint8List?
The raw decoded barcode bytes.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
timeStamp String?
The time at which the barcode was scanned.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() Map<String, dynamic>
Converts this ScanData to a Map suitable for sending over the platform channel.
toString() String
A string representation of this object.
inherited

Operators

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