cut method

Future<int> cut({
  1. int lines = 0,
})

*cut

Cut a line and jump N lines before

Implementation

Future<int> cut({int lines = 0}) async {
  int? cut =
      await platform?.invokeMethod("cutPaper", {'lines': lines}) ?? 9999;

  if (cut < 0) {
    throw ElginException(cut);
  }
  return cut;
}