MouseRegionModifier constructor
const
MouseRegionModifier({
- Key? key,
- Widget? child,
- Key? modifierKey,
- PointerEnterEventListener? onEnter,
- PointerExitEventListener? onExit,
- PointerHoverEventListener? onHover,
- MouseCursor cursor = MouseCursor.defer,
- bool opaque = true,
- HitTestBehavior? hitTestBehavior,
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 MouseRegionModifier({
super.key,
super.child,
super.modifierKey,
this.onEnter,
this.onExit,
this.onHover,
this.cursor = MouseCursor.defer,
this.opaque = true,
this.hitTestBehavior,
});