ScanDataCollection class
Represents the full result of a single scan session.
Passed to Scanner.DataListener.onData after every successful or
unsuccessful scan attempt. Contains the decoded barcode list, the overall
operation result code, and any tokenized (structured) data.
Constructors
-
ScanDataCollection({String? friendlyName, String? labelIdentifier, ScannerResults? result, List<
ScanData> ? scanData, TokenizedData? tokenizedData}) -
const
-
ScanDataCollection.fromMap(Map<
String, dynamic> map) -
Creates a ScanDataCollection from a Map received via the platform channel.
factory
Properties
- friendlyName → String?
-
The human-readable name of the scanner that produced this data.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- labelIdentifier → String?
-
The label identifier for the overall scan attempt.
final
- result → ScannerResults?
-
The overall result of the scan session.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
scanData
→ List<
ScanData> ? -
The list of decoded barcodes from this scan session.
final
- tokenizedData → TokenizedData?
-
Structured (tokenized) data parsed from the scan result.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, dynamic> - Converts this ScanDataCollection 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