listDevices method
Returns a list of UsbDevices currently plugged in.
Implementation
Future<List<UsbDevice>> listDevices() async {
List<dynamic> devices = await (_methodChannel!.invokeMethod("listDevices")
as FutureOr<List<dynamic>>);
return devices.map(UsbDevice.fromJSON).toList();
}