gs128 static method
GS1-128 Barcode
The GS1-128 is an application standard of the GS1.
It uses a series of Application Identifiers to include additional data such as best before dates, batch numbers, quantities, weights and many other attributes needed by the user.
the data may contain parenthesis to separate Application Identifiers.
Example: Use "(420)22345(56780000000001)"
to generate the following barcode.
For the reader application, this will be equivalent to
420 FNC1 22345 FNC1 56780000000001
.
useCode128A
, useCode128B
, useCode128C
specify what code tables are
allowed. The library will optimize the code to minimize the number of bars
depending on the available tables.
When escapes
is enabled, special function codes are accepted in the data
for application-defined meaning.
Use "{1}"
for FNC1, "{2}"
for FNC2, "{3}"
for FNC3, "{4}"
for FNC4.
Example: "Test{1}1233{3}45"
will be equivalent to Test FNC1 1233 FNC3 45
for the reader application.
When addSpaceAfterParenthesis
is enabled a space is added after the
parenthesis to make the barcode more readable when text is enabled
When keepParenthesis
is enabled, the parenthesis are kept in the barcode
when text is enabled
Implementation
static Barcode gs128({
bool useCode128A = true,
bool useCode128B = true,
bool useCode128C = true,
bool escapes = false,
bool addSpaceAfterParenthesis = true,
bool keepParenthesis = false,
}) =>
BarcodeCode128(
useCode128A: useCode128A,
useCode128B: useCode128B,
useCode128C: useCode128C,
isGS1: true,
escapes: escapes,
addSpaceAfterParenthesis: addSpaceAfterParenthesis,
keepParenthesis: keepParenthesis,
);