getJobStatus method

Future<JobStatus> getJobStatus(
  1. String jobId
)

Returns the status of the print job. This call will fail with a runtime error if the print job with the given jobId doesn't exist. jobId: The id of the print job to return the status of. This should be the same id received in a SubmitJobResponse.

Implementation

Future<JobStatus> getJobStatus(String jobId) async {
  var $res = await $js.chrome.printing.getJobStatus(jobId).toDart;
  return JobStatus.fromJS($res);
}