MouseTrackerAnnotation constructor Null safety
- {PointerEnterEventListener? onEnter,
- PointerExitEventListener? onExit,
- MouseCursor cursor = MouseCursor.defer,
- bool validForMouseTracker = true}
Creates an immutable MouseTrackerAnnotation.
All arguments are optional. The cursor must not be null.
Implementation
const MouseTrackerAnnotation({
this.onEnter,
this.onExit,
this.cursor = MouseCursor.defer,
this.validForMouseTracker = true,
}) : assert(cursor != null);