cutSupply method

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

cutSupply() 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?> cutSupply() async {
  bool? cut = await methodChannel.invokeMethod<bool>('cutSupply');
  return cut;
}