WebBarcodeReader enum

The barcode detection backend to use on the web platform.

Inheritance
Available extensions

Values

auto → const WebBarcodeReader

Automatically select the best available reader.

Uses the native BarcodeDetector API when available (Chrome, Edge, Safari 17+), and falls back to zxing-wasm (zxing-cpp compiled to WebAssembly) for browsers that do not support it (e.g. Firefox).

barcodeDetector → const WebBarcodeReader

Force the native BarcodeDetector API.

Throws a MobileScannerException during start() if the API is not available in the current browser.

zxingWasm → const WebBarcodeReader

Force the zxing-wasm (zxing-cpp WASM) reader.

Works in all browsers that support WebAssembly (effectively all modern browsers).

zxingJs → const WebBarcodeReader

Force the legacy @zxing/library JavaScript reader.

This is a pure-JS port of ZXing. Prefer zxingWasm or barcodeDetector instead.

Properties

hashCode → int
The hash code for this object.
no setterinherited
index → int
A numeric identifier for the enumerated value.
no setterinherited
label → String
A human-readable display name for this reader, suitable for use in UI labels and dialogs.
no setter
name → String

Available on Enum, provided by the EnumName extension

The name of the enum value.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
shortLabel → String
A short display name for this reader, suitable for use in compact UI elements such as menu items or badges.
no setter

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

Constants

values → const List<WebBarcodeReader>
A constant List of the values in this enum, in order of their declaration.