cancel method

Future<bool> cancel()

Cancel printing. Invalid while sending data.

Implementation

Future<bool> cancel() async {
  var params = {
    "printerId": mPrinterId,
    "printInfo": mPrinterInfo.toMap(),
  };

  final bool result = await _channel.invokeMethod("cancel", params);
  return result;
}