scan method

Future<ScanResults> scan(
  1. ScanOptions options
)

Performs a document scan and returns a Promise that resolves with a ScanResults object. If a callback is passed to this function, the returned data is passed to it instead. |options| : An object containing scan parameters. |Returns| : Returns a Promise which resolves with the scan results.

Implementation

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