cancel method

  1. @override
Future<void> cancel()

Cancels this print job. You can request cancellation of a queued, started, blocked, or failed print job.

Officially Supported Platforms/Implementations:

Implementation

@override
Future<void> cancel() async {
  Map<String, dynamic> args = <String, dynamic>{};
  await channel?.invokeMethod('cancel', args);
}