getUsbDevices static method
Returns a list of available USB devices.
Implementation
static Future<List<Connector>> getUsbDevices(int timeout) async {
var params = {
"timeout": timeout,
};
final List<dynamic> resultList =
await _channel.invokeMethod("getUsbDevices", params);
List<Connector> foundDevices =
resultList.map((dartDevice) => Connector.fromMap(dartDevice)).toList();
return foundDevices;
}