Gs1Parser class abstract final

Parses GS1-128, GS1 DataMatrix, GS1 QR and GS1 DataBar data.

Accepts element strings with FNC1 as the ASCII group separator \u001D (how camera decoders and most scanners deliver it), with or without a leading symbology identifier (]C1, ]d2, ]Q3, ]e0) or leading separator, and the human readable form with parentheses.

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

Static Properties

definitions → Map<String, Gs1AiDefinition>
All known application identifiers.
no setter

Static Methods

definitionOf(String ai) → Gs1AiDefinition?
The definition of ai, or null if it is not known.
parse(String data, {Set<String> separators = const {groupSeparator}, bool checkDigits = true, int? referenceYear}) → Gs1Data
Parses data. Throws a FormatException if it is not valid GS1 data.
parseDate(String yymmdd, {int? referenceYear}) → Gs1Date
Parses a GS1 YYMMDD date. Day 00 means the last day of the month.
tryParse(String data, {Set<String> separators = const {groupSeparator}, int? referenceYear}) → Gs1Data?
Like parse, but returns null instead of throwing.

Constants

groupSeparator → const String
The ASCII group separator used for FNC1.