getDevices static method
获取设备列表
Implementation
static Future<List<BtDeviceModel>> getDevices() async {
String jsonStr = await _channel.invokeMethod("devices");
if (jsonStr.isEmpty) return [];
return permissionModelFromJson(jsonStr);
}
获取设备列表
static Future<List<BtDeviceModel>> getDevices() async {
String jsonStr = await _channel.invokeMethod("devices");
if (jsonStr.isEmpty) return [];
return permissionModelFromJson(jsonStr);
}