hitTest method

Implementation

Future<List<ARHitTestResult>> hitTest(double x, double y) async {
  final rawResults = await _channel.invokeMethod<List<dynamic>>(
    'hitTest',
    {
      'x': x,
      'y': y,
    },
  );

  return rawResults!
      .map((e) => ARHitTestResult.fromJson(
            Map<String, dynamic>.from(e),
          ))
      .toList();
}