scan method

Future<ScanResults> scan(
  1. ScanOptions options
)

Performs a document scan. On success, the PNG data will be sent to the callback. |options| : Object containing scan parameters. |callback| : Called with the result and data from the scan.

Implementation

Future<ScanResults> scan(ScanOptions options) async {
  var $res = await promiseToFuture<$js.ScanResults>(
      $js.chrome.documentScan.scan(options.toJS));
  return ScanResults.fromJS($res);
}