performHitTest method
Perform Hit Test defaults to center of the screen. x and y values are between 0 and 1
Implementation
Future<List<ARKitTestResult>> performHitTest(
{required double x, required double y}) async {
assert(x > 0 && y > 0);
final results =
await _channel.invokeListMethod('performHitTest', {'x': x, 'y': y});
if (results == null) {
return [];
} else {
final map = results.map((e) => Map<String, dynamic>.from(e));
final objects = map.map((e) => ARKitTestResult.fromJson(e)).toList();
return objects;
}
}