ListenerModifier constructor

const ListenerModifier({
  1. Key? key,
  2. Key? modifierKey,
  3. Widget? child,
  4. PointerDownEventListener? onPointerDown,
  5. PointerMoveEventListener? onPointerMove,
  6. PointerUpEventListener? onPointerUp,
  7. PointerHoverEventListener? onPointerHover,
  8. PointerCancelEventListener? onPointerCancel,
  9. PointerSignalEventListener? onPointerSignal,
  10. PointerPanZoomEndEventListener? onPointerPanZoomEnd,
  11. PointerPanZoomStartEventListener? onPointerPanZoomStart,
  12. PointerPanZoomUpdateEventListener? onPointerPanZoomUpdate,
  13. 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,
});