MouseRegion constructor

const MouseRegion(
  1. {Key key,
  2. void onEnter(
    1. PointerEnterEvent event
    ),
  3. void onExit(
    1. PointerExitEvent event
    ),
  4. void onHover(
    1. PointerHoverEvent event
    ),
  5. MouseCursor cursor: MouseCursor.defer,
  6. bool opaque: true,
  7. Widget child}
)

Creates a widget that forwards mouse events to callbacks.

By default, all callbacks are empty, cursor is MouseCursor.defer, and opaque is true. The cursor must not be null.

Implementation

const MouseRegion({
  Key key,
  this.onEnter,
  this.onExit,
  this.onHover,
  this.cursor = MouseCursor.defer,
  this.opaque = true,
  this.child,
}) : assert(cursor != null),
     assert(opaque != null),
     super(key: key);