onJobStatusChanged property

EventStream<OnJobStatusChangedEvent> get onJobStatusChanged

Event fired when the status of the job is changed. This is only fired for the jobs created by this extension.

Implementation

EventStream<OnJobStatusChangedEvent> get onJobStatusChanged =>
    $js.chrome.printing.onJobStatusChanged.asStream(($c) => (
          String jobId,
          $js.JobStatus status,
        ) {
          return $c(OnJobStatusChangedEvent(
            jobId: jobId,
            status: JobStatus.fromJS(status),
          ));
        });