cut static method
mode
is used to define the full or partial cut (if supported by the priner)
Implementation
static List<int> cut({PosCutMode mode = PosCutMode.full}) {
const gs = '\x1D';
const cCutFull = '${gs}V0'; // Full cut
const cCutPart = '${gs}V1'; // Partial cut
List<int> bytes = [];
bytes += emptyLines(5);
if (mode == PosCutMode.partial) {
bytes += cCutPart.codeUnits;
} else {
bytes += cCutFull.codeUnits;
}
return bytes;
}