hitTestMouseTrackers method

Iterable<MouseTrackerAnnotation> hitTestMouseTrackers (
  1. Offset position

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

See also:


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.findAllAnnotations<MouseTrackerAnnotation>(
    position * configuration.devicePixelRatio