internalHitTestAnnotations method

Annotation? internalHitTestAnnotations(
  1. Offset point
)

Implementation

Annotation? internalHitTestAnnotations(Offset point) {
  // Test in reverse z-order (highest z-index first)
  for (final annotation in sortedAnnotations.reversed) {
    if (annotation.currentIsVisible && annotation.containsPoint(point)) {
      return annotation;
    }
  }
  return null;
}