BarcodeScanner class
A barcode scanner that scans and decodes barcodes from a given InputImage.
Constructors
-
BarcodeScanner({List<
BarcodeFormat> formats = const [BarcodeFormat.all]}) -
Constructor to create an instance of BarcodeScanner.
Returns a barcode scanner with the given
formats
options.
Properties
-
formats
→ List<
BarcodeFormat> -
List that restrict the scan to specific barcode formats.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
Instance id.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
close(
) → Future< void> - Closes the scanner and releases its resources.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
processImage(
InputImage inputImage) → Future< List< Barcode> > - Processes the given InputImage for barcode scanning. Returns a list of Barcode.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited