getConfiguration method

Future<ConfigDescriptor> getConfiguration(
  1. ConnectionHandle handle
)

Gets the configuration descriptor for the currently selected configuration. |handle|: An open connection to the device.

Implementation

Future<ConfigDescriptor> getConfiguration(ConnectionHandle handle) async {
  var $res = await $js.chrome.usb.getConfiguration(handle.toJS).toDart;
  return ConfigDescriptor.fromJS($res);
}