MouseRegion constructor

const MouseRegion(
  1. {Key key,
  2. PointerEnterEventListener onEnter,
  3. PointerExitEventListener onExit,
  4. PointerHoverEventListener onHover,
  5. bool opaque: true,
  6. Widget child}
)

Creates a widget that forwards mouse events to callbacks.

Implementation

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