cut method

  1. @override
Future<bool?> cut()
override

cut() asynchronously makes the connected printer perform a cut operation (this can be called right after feed() for testing purposes) and returns a Boolean value afterwards with the result of the cut operation (i.e. success or failure).

Implementation

@override
Future<bool?> cut() async {
  bool? cut = await methodChannel.invokeMethod<bool>('cut');
  return cut;
}