ListenerModifier constructor
const
ListenerModifier({
- Key? key,
- Key? modifierKey,
- Widget? child,
- PointerDownEventListener? onPointerDown,
- PointerMoveEventListener? onPointerMove,
- PointerUpEventListener? onPointerUp,
- PointerHoverEventListener? onPointerHover,
- PointerCancelEventListener? onPointerCancel,
- PointerSignalEventListener? onPointerSignal,
- PointerPanZoomEndEventListener? onPointerPanZoomEnd,
- PointerPanZoomStartEventListener? onPointerPanZoomStart,
- PointerPanZoomUpdateEventListener? onPointerPanZoomUpdate,
- HitTestBehavior behavior = HitTestBehavior.deferToChild,
Creates a widget that forwards point events to callbacks.
The behavior
argument defaults to HitTestBehavior.deferToChild.
Implementation
const ListenerModifier({
super.key,
super.modifierKey,
super.child,
this.onPointerDown,
this.onPointerMove,
this.onPointerUp,
this.onPointerHover,
this.onPointerCancel,
this.onPointerSignal,
this.onPointerPanZoomEnd,
this.onPointerPanZoomStart,
this.onPointerPanZoomUpdate,
this.behavior = HitTestBehavior.deferToChild,
});