shouldTrack property
bool
get
shouldTrack
Whether tracking should be active based on listener presence.
Returns true if there are widgets listening for position updates. Use this to conditionally enable expensive mouse tracking operations.
Implementation
bool get shouldTrack => hasListeners;