rawBytes method

List<int> rawBytes(
  1. List<int> cmd, {
  2. bool isKanji = false,
})

Sens raw command(s)

Implementation

List<int> rawBytes(List<int> cmd, {bool isKanji = false}) {
  List<int> bytes = [];
  if (!isKanji) {
    bytes += cKanjiOff.codeUnits;
  }
  bytes += Uint8List.fromList(cmd);
  return bytes;
}