printCode39 static method
Print Code 39 barcode
Implementation
static List<int> printCode39(String data) {
List<int> command = [];
List<int> dataBytes = data.codeUnits;
// GS k - Print barcode
command.addAll([0x1D, 0x6B]); // GS k
command.add(0x04); // m = 4 (Code 39)
command.addAll(dataBytes); // Data
command.add(0x00); // NUL terminator
return command;
}