BarcodeFormat class
Defines supported barcode format constants for use with FlutterBarcodeSdk.setBarcodeFormats.
These constants can be combined using the bitwise OR operator (|) to
specify multiple barcode formats simultaneously.
Example
// Detect only QR Code and Code 128
await barcodeReader.setBarcodeFormats(
BarcodeFormat.QR_CODE | BarcodeFormat.CODE_128,
);
Web Platform Support
On web, barcode format values are automatically converted to JavaScript
BigInt to preserve their full 64-bit precision. This allows formats
with values exceeding 0x7FFFFFFF (such as postal codes, DotCode, and
Pharmacode) to work correctly.
Note: When combining formats using Dart's bitwise OR operator (|)
in your code, the operation is performed in Dart before being sent to
JavaScript, so all formats can be safely combined regardless of their
magnitude.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- 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
Constants
- ALL → const int
-
All supported barcode formats (
0xFFFFFFFEFFFFFFFFunsigned). - AUSTRALIANPOST → const int
- Australia Post barcode format.
- AZTEC → const int
- Aztec Code barcode format.
- CODABAR → const int
- Codabar barcode format.
- CODE_11 → const int
- Code 11 barcode format.
- CODE_32 → const int
- Code 32 barcode format (Italian Pharmacode).
- CODE_39 → const int
- Code 39 barcode format.
- CODE_39_EXTENDED → const int
- Code 39 Extended barcode format.
- CODE_93 → const int
- Code 93 barcode format.
- CODE_128 → const int
- Code 128 barcode format.
- DATAMATRIX → const int
- DataMatrix barcode format.
- DEFAULT → const int
- Default barcode format set covering the most commonly used symbologies.
- DOTCODE → const int
- DotCode barcode format.
- EAN_8 → const int
- EAN-8 barcode format.
- EAN_13 → const int
- EAN-13 barcode format.
- FIVE_DIGIT_ADD_ON → const int
- Five-digit add-on supplement for UPC/EAN barcodes.
- GS1_COMPOSITE → const int
- GS1 Composite Code barcode format.
- GS1_DATABAR → const int
- Combined value of all GS1 DataBar formats: GS1_DATABAR_OMNIDIRECTIONAL, GS1_DATABAR_TRUNCATED, GS1_DATABAR_STACKED, GS1_DATABAR_STACKED_OMNIDIRECTIONAL, GS1_DATABAR_EXPANDED, GS1_DATABAR_EXPANDED_STACKED, GS1_DATABAR_LIMITED.
- GS1_DATABAR_EXPANDED → const int
- GS1 DataBar Expanded barcode format.
- GS1_DATABAR_EXPANDED_STACKED → const int
- GS1 DataBar Expanded Stacked barcode format.
- GS1_DATABAR_LIMITED → const int
- GS1 DataBar Limited barcode format.
- GS1_DATABAR_OMNIDIRECTIONAL → const int
- GS1 DataBar Omnidirectional barcode format.
- GS1_DATABAR_STACKED → const int
- GS1 DataBar Stacked barcode format.
- GS1_DATABAR_STACKED_OMNIDIRECTIONAL → const int
- GS1 DataBar Stacked Omnidirectional barcode format.
- GS1_DATABAR_TRUNCATED → const int
- GS1 DataBar Truncated barcode format.
- INDUSTRIAL_25 → const int
- Industrial 2 of 5 barcode format.
- ITF → const int
- Interleaved 2 of 5 (ITF) barcode format.
- KIX → const int
- KIX (Klant Index) barcode format used by Royal Dutch TPG Post.
- MATRIX_25 → const int
- Matrix 2 of 5 barcode format.
- MAXICODE → const int
- MaxiCode barcode format (modes 2–5).
- MICRO_PDF417 → const int
- Micro PDF417 barcode format.
- MICRO_QR → const int
- Micro QR Code barcode format.
- MSI_CODE → const int
- MSI (Modified Plessey) barcode format.
- NONSTANDARD_BARCODE → const int
- Non-standard barcode format.
- NULL → const int
- No barcode format.
- ONED → const int
- Combined value of all 1D (linear) barcode formats: CODE_39, CODE_128, CODE_93, CODABAR, ITF, EAN_13, EAN_8, UPC_A, UPC_E, INDUSTRIAL_25, CODE_39_EXTENDED, MSI_CODE, CODE_11.
- PATCHCODE → const int
- Patch Code barcode format.
- PDF417 → const int
- PDF417 barcode format.
- PHARMACODE → const int
- Combined value of PHARMACODE_ONE_TRACK and PHARMACODE_TWO_TRACK.
- PHARMACODE_ONE_TRACK → const int
- Pharmacode (one-track) barcode format.
- PHARMACODE_TWO_TRACK → const int
- Pharmacode (two-track) barcode format.
- PLANET → const int
- PLANET barcode format.
- POSTALCODE → const int
- Combined value of all postal code formats: USPSINTELLIGENTMAIL, POSTNET, PLANET, AUSTRALIANPOST, RM4SCC, KIX.
- POSTNET → const int
- POSTNET barcode format.
- QR_CODE → const int
- QR Code barcode format.
- RM4SCC → const int
- Royal Mail 4-State Customer Code (RM4SCC) barcode format.
- TELEPEN → const int
- Telepen barcode format.
- TELEPEN_NUMERIC → const int
- Telepen Numeric barcode format.
- TWO_DIGIT_ADD_ON → const int
- Two-digit add-on supplement for UPC/EAN barcodes.
- UPC_A → const int
- UPC-A barcode format.
- UPC_E → const int
- UPC-E barcode format.
- USPSINTELLIGENTMAIL → const int
- USPS Intelligent Mail barcode format.