getScannerList method
Gets the list of available scanners and returns a Promise that resolves with a GetScannerListResponse object. If a callback is passed to this function, returned data is passed to it instead. |filter| : A DeviceFilter indicating which types of scanners should be returned. |Returns| : Returns a Promise which resolves with the result and list of scanners.
Implementation
Future<GetScannerListResponse> getScannerList(DeviceFilter filter) async {
var $res = await $js.chrome.documentScan.getScannerList(filter.toJS).toDart;
return GetScannerListResponse.fromJS($res);
}