openScanner method
Opens a scanner for exclusive access and returns a Promise that resolves with an OpenScannerResponse object. If a callback is passed to this function, returned data is passed to it instead. |scannerId| : The ID of a scanner to be opened. This value is one returned from a previous call to getScannerList. |Returns| : Returns a Promise which resolves with the result.
Implementation
Future<OpenScannerResponse> openScanner(String scannerId) async {
var $res = await $js.chrome.documentScan.openScanner(scannerId).toDart;
return OpenScannerResponse.fromJS($res);
}