getScannerList method

Future<GetScannerListResponse> getScannerList(
  1. DeviceFilter filter
)

Gets the list of available scanners. On success, the list will be sent to the callback. |filter| : DeviceFilter indicating which types of scanners should be returned. |callback| : Called with the result and list of scanners.

Implementation

Future<GetScannerListResponse> getScannerList(DeviceFilter filter) async {
  var $res = await promiseToFuture<$js.GetScannerListResponse>(
      $js.chrome.documentScan.getScannerList(filter.toJS));
  return GetScannerListResponse.fromJS($res);
}