code128 static method
Code128 Barcode
Code 128 is a high-density linear barcode symbology defined in ISO/IEC 15417:2007. It is used for alphanumeric or numeric-only barcodes.
It can encode all 128 characters of ASCII and, by use of an extension symbol, the Latin-1 characters defined in ISO/IEC 8859-1.
Code 128 A:
Code 128 B:
Code 128 C:
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.
Implementation
static Barcode code128({
bool useCode128A = true,
bool useCode128B = true,
bool useCode128C = true,
bool escapes = false,
}) =>
BarcodeCode128(
useCode128A: useCode128A,
useCode128B: useCode128B,
useCode128C: useCode128C,
isGS1: false,
escapes: escapes,
addSpaceAfterParenthesis: false,
keepParenthesis: false,
);