BarcodeSelectionSettings class
Holds all the barcode selection related settings, such as enabled symbologies and tap behavior. For the settings to take effect, they must be applied to a barcode selection (BarcodeSelection) instance using BarcodeSelection.applySettings().
Added in version 6.10.0
Constructors
- BarcodeSelectionSettings()
- Creates a new barcode selection settings instance. All symbologies are disabled. Make sure to enable the symbologies required by your app before applying the settings to BarcodeSelection with BarcodeSelection.applySettings().
Properties
- codeDuplicateFilter ↔ Duration
-
Determines the time interval in which codes with the same symbology/data are considered not automatically selectable again (automatic selection can happen through BarcodeSelectionSettings.singleBarcodeAutoDetection). By default, when the same code (data, symbology) stays in view after just having been selected (manually or automatically) it will not be automatically selected again for 500 milliseconds. This property has no influence on manual selection by tapping. Use this property to change the interval or completely turn off duplicate filtering:
getter/setter pair
-
enabledSymbologies
→ Set<
Symbology> -
Returns the set of enabled symbologies.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- selectionType ↔ BarcodeSelectionType
-
This setting is used to define the method that BarcodeSelection will use to select barcodes. Defaults to BarcodeSelectionTapSelection.
getter/setter pair
- singleBarcodeAutoDetection ↔ bool
-
If true, when a single barcode is tracked it’s automatically selected. Defaults to false.
getter/setter pair
- swipeGesturesEnabled ↔ bool
-
If true, user can swipe right to select all barcodes in the view or swipe left to deselect all barcodes in the view. Defaults to true.
getter/setter pair
- tapGestureForSelectionEnabled ↔ bool
-
If false, selection through tap is disabled. Defaults to true. This property only has its effect when used with manual aimer selection.
getter/setter pair
Methods
-
enableSymbologies(
Set< Symbology> symbologies) → void - This function provides a convenient shortcut to enabling decoding of particular symbologies without having to go through SymbologySettings. By default, all symbologies are turned off and symbologies need to be explicitly enabled.
-
enableSymbology(
Symbology symbology, bool enabled) → void - This function provides a convenient shortcut to enabling/disabling decoding of a particular symbology without having to go through SymbologySettings.
-
getProperty<
T> (String name) → T - Retrieves the value of a previously set property.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
setProperty<
T> (String name, T value) → void - Sets property to the provided value. Use this method to set properties that are not yet part of a stable API. Properties set through this method may or may not be used or change in a future release.
-
settingsForSymbology(
Symbology symbology) → SymbologySettings - Gets SymbologySettings specific for the given Symbology.
-
toMap(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited