cut method

List<int> cut({
  1. PosCutMode mode = PosCutMode.full,
})

Cut the paper

mode is used to define the full or partial cut (if supported by the priner)

Implementation

List<int> cut({PosCutMode mode = PosCutMode.full}) {
  List<int> bytes = [];
  bytes += emptyLines(5);
  if (mode == PosCutMode.partial) {
    bytes += cCutPart.codeUnits;
  } else {
    bytes += cCutFull.codeUnits;
  }
  return bytes;
}