hitTestNodes method

Future<UArNodeHit?> hitTestNodes(
  1. Offset point
)

The node under a point of the view, if any.

Implementation

Future<UArNodeHit?> hitTestNodes(Offset point) async {
  final Offset n = _normalize(point);
  final Map<Object?, Object?>? raw = await _invoke<Map<Object?, Object?>>("hitTestNodes", <String, Object?>{"x": n.dx, "y": n.dy});
  return raw == null || raw["id"] == null ? null : UArNodeHit.fromMap(raw);
}