validForMouseTracker property Null safety

  1. @override
bool validForMouseTracker
override

Whether this is included when MouseTracker collects the list of annotations.

If validForMouseTracker is false, this object is excluded from the current annotation list even if it's included in the hit test, affecting mouse-related behavior such as enter events, exit events, and mouse cursors. The validForMouseTracker does not affect hit testing.

The validForMouseTracker is true for MouseTrackerAnnotations built by the constructor.

Implementation

@override
bool get validForMouseTracker => true;