MouseTrackerAnnotation constructor Null safety

const MouseTrackerAnnotation(
  1. {PointerEnterEventListener? onEnter,
  2. PointerExitEventListener? onExit,
  3. MouseCursor cursor = MouseCursor.defer,
  4. 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);