cancel method

Future<void> cancel()

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

Officially Supported Platforms/Implementations:

Use the PlatformPrintJobController.isMethodSupported method to check if this method is supported at runtime.

Implementation

Future<void> cancel() => platform.cancel();