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