BarcodeRecognizerConfiguration class
Configuration of the scanning behavior.
Constructors
-
BarcodeRecognizerConfiguration({List<
BarcodeDocumentFormat> ? acceptedDocumentFormats, BarcodesExtensionFilter barcodesExtensionFilter = BarcodesExtensionFilter.NO_FILTER, String barcodesRegexFilter = "", int minimumTextLength = 0, int maximumTextLength = 0, int minimum1DBarcodesQuietZone = 10, bool stripCheckDigits = false, bool useIATA2OF5Checksum = true, bool useCode11Checksum = true, List<BarcodeFormat> ? barcodeFormats, MSIPlesseyChecksumAlgorithm msiPlesseyChecksumAlgorithm = MSIPlesseyChecksumAlgorithm.MOD_10, AustraliaPostCustomerFormat australiaPostCustomerFormat = AustraliaPostCustomerFormat.ALPHA_NUMERIC, bool lowPowerMode = false, Gs1Handling gs1Handling = Gs1Handling.PARSE}) -
BarcodeRecognizerConfiguration.fromJson(Map<
String, dynamic> json) -
factory
Properties
-
acceptedDocumentFormats
↔ List<
BarcodeDocumentFormat> -
List of accepted barcode document formats.
getter/setter pair
- australiaPostCustomerFormat ↔ AustraliaPostCustomerFormat
-
The customer format used in AUSTRALIA_POST codes. The default value is ALPHA_NUMERIC.
Default is ALPHA_NUMERIC
getter/setter pair
-
barcodeFormats
↔ List<
BarcodeFormat> -
List of accepted barcode symbologies.
getter/setter pair
- barcodesExtensionFilter ↔ BarcodesExtensionFilter
-
Filter for extended EAN and UPC barcodes.
Default is NO_FILTER
getter/setter pair
- barcodesRegexFilter ↔ String
-
Regular expression filter for barcode text. If the barcode text does not match the regular expression, it will not be scanned. The default is an empty string (setting is turned off). This option overrides
barcodesExtensionFilter
option. Default is ""getter/setter pair - gs1Handling ↔ Gs1Handling
-
The expected way of handling GS1_COMPOSITE barcodes.
Default is PARSE
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- lowPowerMode ↔ bool
-
If
true
, enables a mode that slightly decreases scanning quality and energy consumption. Increases scanning speed. Iffalse
, the mode is disabled. The default isfalse
. Android only. Default is falsegetter/setter pair - maximumTextLength ↔ int
-
Optional maximum text length of the detected barcode. The default is 0 (setting is turned off). NOTE - This feature works on ITF barcodes only.
Default is 0
getter/setter pair
- minimum1DBarcodesQuietZone ↔ int
-
Optional minimum required quiet zone on the barcode. Measured in modules (the smallest bar size on a barcode). The default is 10. NOTE - This feature works on ITF barcodes only.
Default is 10
getter/setter pair
- minimumTextLength ↔ int
-
Optional minimum required text length of the detected barcode. The default is 0 (setting is turned off). NOTE - This feature works on ITF barcodes only.
Default is 0
getter/setter pair
- msiPlesseyChecksumAlgorithm ↔ MSIPlesseyChecksumAlgorithm
-
Checksum algorithm used for MSI Plessey barcodes. The default value is MOD_10.
Default is MOD_10
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- stripCheckDigits ↔ bool
-
If
true
, check digits for UPC, EAN and MSI Plessey codes are removed from the result. Has no effect if both single and double digit MSI Plessey checksums are enabled. The default isfalse
. Default is falsegetter/setter pair - useCode11Checksum ↔ bool
-
If
true
, the optional check digit for CODE_11 codes is used in validation. The default istrue
. Default is truegetter/setter pair - useIATA2OF5Checksum ↔ bool
-
If
true
, the optional check digit for IATA_2_OF_5 codes is used in validation. The default istrue
. Default is truegetter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited