MouseTracker constructor

MouseTracker(
  1. PointerRouter router,
  2. MouseDetectorAnnotationFinder annotationFinder
)

Creates a MouseTracker to keep track of mouse locations.

The first parameter is a PointerRouter, which MouseTracker will subscribe to and receive events from. Usually it is the global singleton instance GestureBinding.pointerRouter.

The second parameter is a function with which the MouseTracker can search for MouseTrackerAnnotations at a given position. Usually it is Layer.findAllAnnotations of the root layer.

All of the parameters must be non-null.

Implementation

MouseTracker(
  PointerRouter router,
  MouseDetectorAnnotationFinder annotationFinder,
) : super(router, annotationFinder);