getDevices static method

Future<List<BtDeviceModel>> getDevices()

获取设备列表

Implementation

static Future<List<BtDeviceModel>> getDevices() async {
  String jsonStr = await _channel.invokeMethod("devices");
  if (jsonStr.isEmpty) return [];
  return permissionModelFromJson(jsonStr);
}