hitTestMouseTrackers method

Iterable<MouseTrackerAnnotation> hitTestMouseTrackers (Offset position)

Determines the set of mouse tracker annotations at the given position.

See also:

Implementation

Iterable<MouseTrackerAnnotation> hitTestMouseTrackers(Offset position) {
  // Layer hit testing is done using device pixels, so we have to convert
  // the logical coordinates of the event location back to device pixels
  // here.
  return layer.findAll<MouseTrackerAnnotation>(position * configuration.devicePixelRatio);
}