getOptionGroups method
Gets the group names and member options from a scanner previously opened by openScanner. This method returns a Promise that resolves with a GetOptionGroupsResponse object. If a callback is passed to this function, returned data is passed to it instead. |scannerHandle| : The handle of an open scanner returned from a call to openScanner. |Returns| : Returns a Promise which resolves with the result.
Implementation
Future<GetOptionGroupsResponse> getOptionGroups(String scannerHandle) async {
var $res =
await $js.chrome.documentScan.getOptionGroups(scannerHandle).toDart;
return GetOptionGroupsResponse.fromJS($res);
}