cancelScan method

Future<CancelScanResponse> cancelScan(
  1. String job
)

Cancels a scan that was previously started using startScan. The response is sent to the callback. |job| : An active scan job previously returned from startScan. |callback| : Called with the result.

Implementation

Future<CancelScanResponse> cancelScan(String job) async {
  var $res = await promiseToFuture<$js.CancelScanResponse>(
      $js.chrome.documentScan.cancelScan(job));
  return CancelScanResponse.fromJS($res);
}