flutter_usb 0.0.2
flutter_usb: ^0.0.2 copied to clipboard
A new Flutter plugin to get information of connected usb devices in json format (MacOS & Linux)
flutter_usb #
A new Flutter plugin to get information of connected usb devices in json format (MacOS & Linux)
How to get usb information #
var json = await FlutterUsb.getUsbJson();
debugPrint('Usb json: ${json.toString()}');
MacOS #
For MacOS & Linux it runs system_profiler SPUSBDataType
command in shell #
This project is a starting point for a Flutter plug-in package, a specialized package that includes platform-specific implementation code for Android and/or iOS.
For help getting started with Flutter development, view the online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.