cancelScan method
Cancels a started scan and returns a Promise that resolves with a CancelScanResponse object. If a callback is used, the object is passed to it instead. |job| : The handle of an active scan job previously returned from a call to startScan. |Returns| : Returns a Promise which resolves with the result.
Implementation
Future<CancelScanResponse> cancelScan(String job) async {
var $res = await $js.chrome.documentScan.cancelScan(job).toDart;
return CancelScanResponse.fromJS($res);
}