BarcodeFormat enum

A barcode symbology, or a specific variant of one.

Filtering by format. A base symbology also matches all of its variants: {BarcodeFormat.qrCode} finds QR codes, Micro QR and rMQR codes, and {BarcodeFormat.eanUpc} finds EAN-13, EAN-8, UPC-A and UPC-E. A variant matches only itself: {BarcodeFormat.ean13} finds EAN-13 only.

Reported format. A found barcode reports the format its reader knows: ean13 rather than eanUpc, code39Extended rather than code39. Some variants are found by their filter but reported as their base format: itf14 as itf, compactPdf417 as pdf417, dataBarStackedOmni as dataBarStacked, aztecCode and aztecRune as aztec, qrCodeModel2 as qrCode, code39Standard as code39. Use symbology to group results.

Telepen. Read with both telepenAlpha and telepenNumeric allowed (no filter, or telepen), zxing-cpp guesses the mode from the symbol: a numeric code may come as telepenAlpha with a wrong text (12345678 as '=Si). Read numeric Telepen, which BarcodeWriter creates for digits, with formats: {BarcodeFormat.telepenNumeric}.

Errors name a format as it is written in code, BarcodeFormat.isbn (name), not by its displayName: a format that cannot be read or written throws an ArgumentError saying BarcodeFormat.isbn cannot be read.

Inheritance
Available extensions

Values

codabar → const BarcodeFormat

Codabar.

const BarcodeFormat('Codabar', 'Codabar', 'F', ' ', _linear | _read | _write)
code39 → const BarcodeFormat

Code 39, all variants.

const BarcodeFormat('Code39', 'Code 39', 'A', ' ', _linear | _read | _write)
code39Standard → const BarcodeFormat

Code 39 Standard.

const BarcodeFormat('Code39Std', 'Code 39 Standard', 'A', 's', _linear | _read | _write)
code39Extended → const BarcodeFormat

Code 39 Extended (full ASCII).

const BarcodeFormat('Code39Ext', 'Code 39 Extended', 'A', 'e', _linear | _read | _write)
code32 → const BarcodeFormat

Code 32 (Italian pharmacode).

const BarcodeFormat('Code32', 'Code 32', 'A', '2', _linear | _read | _write)
pzn → const BarcodeFormat

Pharmazentralnummer (German pharmacode).

const BarcodeFormat('PZN', 'Pharmazentralnummer', 'A', 'p', _linear | _read | _write)
code93 → const BarcodeFormat

Code 93.

const BarcodeFormat('Code93', 'Code 93', 'G', ' ', _linear | _read | _write)
code128 → const BarcodeFormat

Code 128.

const BarcodeFormat('Code128', 'Code 128', 'C', ' ', _linear | _read | _write)
itf → const BarcodeFormat

Interleaved 2 of 5, all variants.

const BarcodeFormat('ITF', 'ITF', 'I', ' ', _linear | _read | _write)
itf14 → const BarcodeFormat

ITF-14.

const BarcodeFormat('ITF14', 'ITF-14', 'I', '4', _linear | _read)
dataBar → const BarcodeFormat

GS1 DataBar, all variants.

const BarcodeFormat('DataBar', 'DataBar', 'e', ' ', _linear | _read | _write)
dataBarOmni → const BarcodeFormat

GS1 DataBar Omnidirectional.

const BarcodeFormat('DataBarOmni', 'DataBar Omni', 'e', 'o', _linear | _read | _write)
dataBarStacked → const BarcodeFormat

GS1 DataBar Stacked.

const BarcodeFormat('DataBarStk', 'DataBar Stacked', 'e', 's', _linear | _read | _write)
dataBarStackedOmni → const BarcodeFormat

GS1 DataBar Stacked Omnidirectional.

const BarcodeFormat('DataBarStkOmni', 'DataBar Stacked Omni', 'e', 'O', _linear | _read | _write)
dataBarLimited → const BarcodeFormat

GS1 DataBar Limited.

const BarcodeFormat('DataBarLtd', 'DataBar Limited', 'e', 'l', _linear | _read | _write)
dataBarExpanded → const BarcodeFormat

GS1 DataBar Expanded.

const BarcodeFormat('DataBarExp', 'DataBar Expanded', 'e', 'e', _linear | _read | _write)
dataBarExpandedStacked → const BarcodeFormat

GS1 DataBar Expanded Stacked.

const BarcodeFormat('DataBarExpStk', 'DataBar Expanded Stacked', 'e', 'E', _linear | _read | _write)
eanUpc → const BarcodeFormat

EAN and UPC, all variants.

const BarcodeFormat('EANUPC', 'EAN/UPC', 'E', ' ', _linear | _read | _write)
ean13 → const BarcodeFormat

EAN-13.

const BarcodeFormat('EAN13', 'EAN-13', 'E', '1', _linear | _read | _write)
ean8 → const BarcodeFormat

EAN-8.

const BarcodeFormat('EAN8', 'EAN-8', 'E', '8', _linear | _read | _write)
ean5 → const BarcodeFormat

EAN-5 add-on. Not read on its own: it comes as part of the EAN-13, EAN-8, UPC-A or UPC-E text when ReaderOptions.eanAddOn reads add-ons.

const BarcodeFormat('EAN5', 'EAN-5', 'E', '5', _linear)
ean2 → const BarcodeFormat

EAN-2 add-on. Not read on its own, like ean5.

const BarcodeFormat('EAN2', 'EAN-2', 'E', '2', _linear)
isbn → const BarcodeFormat

ISBN (an EAN-13 starting with 978/979). Written as such, read as ean13: filter by ean13 and check that the text starts with 978 or 979.

const BarcodeFormat('ISBN', 'ISBN', 'E', 'i', _linear | _write)
upcA → const BarcodeFormat

UPC-A.

const BarcodeFormat('UPCA', 'UPC-A', 'E', 'a', _linear | _read | _write)
upcE → const BarcodeFormat

UPC-E.

const BarcodeFormat('UPCE', 'UPC-E', 'E', 'e', _linear | _read | _write)
telepen → const BarcodeFormat

Telepen, all variants.

const BarcodeFormat('Telepen', 'Telepen', 'B', ' ', _linear | _read | _write)
telepenAlpha → const BarcodeFormat

Telepen in its full ASCII mode.

const BarcodeFormat('TelepenAlpha', 'Telepen Alpha', 'B', '0', _linear | _read | _write)
telepenNumeric → const BarcodeFormat

Telepen in its numeric mode.

const BarcodeFormat('TelepenNumeric', 'Telepen Numeric', 'B', '1', _linear | _read | _write)
dxFilmEdge → const BarcodeFormat

DX film edge code.

const BarcodeFormat('DXFilmEdge', 'DX Film Edge', 'X', 'x', _linear | _read | _write)
pdf417 → const BarcodeFormat

PDF417, all variants.

const BarcodeFormat('PDF417', 'PDF417', 'L', ' ', _matrix | _read | _write)
compactPdf417 → const BarcodeFormat

Compact (truncated) PDF417.

const BarcodeFormat('CompactPDF417', 'Compact PDF417', 'L', 'c', _matrix | _read | _write)
microPdf417 → const BarcodeFormat

MicroPDF417.

const BarcodeFormat('MicroPDF417', 'MicroPDF417', 'L', 'm', _matrix | _read | _write)
aztec → const BarcodeFormat

Aztec, all variants.

const BarcodeFormat('Aztec', 'Aztec', 'z', ' ', _matrix | _read | _write)
aztecCode → const BarcodeFormat

Aztec Code.

const BarcodeFormat('AztecCode', 'Aztec Code', 'z', 'c', _matrix | _read | _write)
aztecRune → const BarcodeFormat

Aztec Rune.

const BarcodeFormat('AztecRune', 'Aztec Rune', 'z', 'r', _matrix | _read | _write)
qrCode → const BarcodeFormat

QR Code, all variants (including Micro QR and rMQR when filtering).

const BarcodeFormat('QRCode', 'QR Code', 'Q', ' ', _matrix | _read | _write)
qrCodeModel1 → const BarcodeFormat

QR Code Model 1.

const BarcodeFormat('QRCodeModel1', 'QR Code Model 1', 'Q', '1', _matrix | _read)
qrCodeModel2 → const BarcodeFormat

QR Code Model 2.

const BarcodeFormat('QRCodeModel2', 'QR Code Model 2', 'Q', '2', _matrix | _read | _write)
microQrCode → const BarcodeFormat

Micro QR Code.

const BarcodeFormat('MicroQRCode', 'Micro QR Code', 'Q', 'm', _matrix | _read | _write)
rmqrCode → const BarcodeFormat

Rectangular Micro QR Code (rMQR).

const BarcodeFormat('RMQRCode', 'rMQR Code', 'Q', 'r', _matrix | _read | _write)
dataMatrix → const BarcodeFormat

Data Matrix.

const BarcodeFormat('DataMatrix', 'Data Matrix', 'd', ' ', _matrix | _read | _write)
maxiCode → const BarcodeFormat

MaxiCode.

const BarcodeFormat('MaxiCode', 'MaxiCode', 'U', ' ', _matrix | _read)
unknown → const BarcodeFormat

A format this version of the package does not know yet. Only ever reported for results, never valid as a filter or for writing.

const BarcodeFormat('', 'Unknown', '\u0000', '\u0000', 0)

Properties

canRead → bool
Whether this format can be read: used as a filter, it finds barcodes. False for the EAN-2/EAN-5 add-ons (read with their EAN or UPC code), isbn (read as ean13) and unknown.
no setter
canWrite → bool
Whether this format can be created with BarcodeWriter.
no setter
displayName → String
Human readable name, e.g. QR Code or EAN-13.
final
hasErrorCorrection → bool
Whether BarcodeWriter.errorCorrection applies: QR (with Micro QR and rMQR), Aztec and PDF417. The other formats have fixed error correction or none, and ignore it.
no setter
hashCode → int
The hash code for this object.
no setterinherited
index → int
A numeric identifier for the enumerated value.
no setterinherited
input → BarcodeInput?
What BarcodeWriter accepts for this format: a description for a form field, an example and the kind of keyboard. null if it cannot be written.
no setter
isLinear → bool
Whether this is a one-dimensional (linear) symbology.
no setter
isMatrix → bool
Whether this is a two-dimensional (matrix or stacked) symbology.
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
symbology → BarcodeFormat
The base symbology: qrCodeModel2 → qrCode, ean13 → eanUpc. A format without a base of its own (dxFilmEdge) is its own symbology.
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

industrial → const Set<BarcodeFormat>
Logistics and industry: Code 128, Code 39, ITF, Data Matrix, PDF417.
linear → const Set<BarcodeFormat>
All linear (1D) symbologies.
matrix → const Set<BarcodeFormat>
All two-dimensional symbologies.
retail → const Set<BarcodeFormat>
Retail products: EAN/UPC and GS1 DataBar.
values → const List<BarcodeFormat>
A constant List of the values in this enum, in order of their declaration.
writable → const Set<BarcodeFormat>
The formats BarcodeWriter creates, each kind of symbol once, 2D first: the list for a format picker. Left out are the variants a listed format already creates (qrCodeModel2 is qrCode, code39Standard is code39, aztecCode is aztec, eanUpc is ean13, dataBarOmni is dataBar, telepenAlpha and telepenNumeric are telepen, which picks the mode from the data).