ScanMode enum
What the scanner does after a successful detection.
Values
- continuous → const ScanMode
-
Keep scanning. Duplicate suppression keeps the stream readable.
- single → const ScanMode
-
Stop the camera after the first accepted barcode.
- multiple → const ScanMode
-
Report every barcode found in a frame instead of just the first one. Costs measurably more CPU, so it is opt-in.
- distinct → const ScanMode
-
Keep scanning like continuous, but only report a barcode whose
format + valuediffers from the last one reported. Holding the camera over the same symbol yields a single event no matter how long it stays in view; the next different symbol is reported straight away, and returning to the first one after it reports that one again.Unlike ScannerOptions.duplicateFilterDuration this is not time based. The memory lasts for the camera session and is cleared by BarcodeScannerController.start.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- 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
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