getAllDevicesPath method

  1. @override
Future<List<String>> getAllDevicesPath()
override

获取系统中所有串口设备路径

Implementation

@override
Future<List<String>> getAllDevicesPath() async {
  final devices = await methodChannel.invokeMethod('getAllDevicesPath');
  return List<String>.from(devices ?? []);
}