getConfigurations method
Returns the full set of device configuration descriptors. |device|: The Device to fetch descriptors from.
Implementation
Future<List<ConfigDescriptor>> getConfigurations(Device device) async {
var $res = await promiseToFuture<JSArray>(
$js.chrome.usb.getConfigurations(device.toJS));
return $res.toDart
.cast<$js.ConfigDescriptor>()
.map((e) => ConfigDescriptor.fromJS(e))
.toList();
}