cancelJob method

Future<void> cancelJob(
  1. String jobId
)

Cancels previously submitted job. |jobId|: The id of the print job to cancel. This should be the same id received in a SubmitJobResponse.

Implementation

Future<void> cancelJob(String jobId) async {
  await promiseToFuture<void>($js.chrome.printing.cancelJob(jobId));
}