hitTestAnnotations method

Annotation? hitTestAnnotations(
  1. Offset graphPosition
)

Hit test annotations at a specific position.

This is a delegating method for the editor's hit testing.

Parameters:

  • graphPosition: The position to test in graph/world coordinates

Returns the annotation if hit, null otherwise.

Implementation

Annotation? hitTestAnnotations(Offset graphPosition) {
  return annotations.internalHitTestAnnotations(graphPosition);
}