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;
}