closeScanner method
Closes the scanner with the passed in handle and returns a Promise that resolves with a CloseScannerResponse object. If a callback is used, the object is passed to it instead. Even if the response is not a success, the supplied handle becomes invalid and should not be used for further operations. |scannerHandle| : Specifies the handle of an open scanner that was previously returned from a call to openScanner. |Returns| : Returns a Promise which resolves with the result.
Implementation
Future<CloseScannerResponse> closeScanner(String scannerHandle) async {
var $res = await $js.chrome.documentScan.closeScanner(scannerHandle).toDart;
return CloseScannerResponse.fromJS($res);
}