initMouseTracker method Null safety
- [MouseTracker? tracker]
visibleForTesting">@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();
}