initMouseTracker method

  1. @visibleForTesting
void initMouseTracker (
  1. [MouseTracker tracker]
)
@visibleForTesting

Creates a MouseTracker which manages state about currently connected mice, for hover notification.

Used by testing framework to reinitialize the mouse tracker between tests.

Implementation

@visibleForTesting
void initMouseTracker([MouseTracker tracker]) {
  _mouseTracker?.dispose();
  _mouseTracker = tracker ?? MouseTracker(pointerRouter, renderView.hitTestMouseTrackers);
}