listener method

Listener listener({
  1. Key? key,
  2. PointerDownEventListener? onPointerDown,
  3. PointerMoveEventListener? onPointerMove,
  4. PointerUpEventListener? onPointerUp,
  5. PointerHoverEventListener? onPointerHover,
  6. PointerCancelEventListener? onPointerCancel,
  7. PointerPanZoomStartEventListener? onPointerPanZoomStart,
  8. PointerPanZoomUpdateEventListener? onPointerPanZoomUpdate,
  9. PointerPanZoomEndEventListener? onPointerPanZoomEnd,
  10. PointerSignalEventListener? onPointerSignal,
  11. HitTestBehavior behavior = HitTestBehavior.deferToChild,
})

see Listener

Implementation

Listener listener({
  Key? key,
  PointerDownEventListener? onPointerDown,
  PointerMoveEventListener? onPointerMove,
  PointerUpEventListener? onPointerUp,
  PointerHoverEventListener? onPointerHover,
  PointerCancelEventListener? onPointerCancel,
  PointerPanZoomStartEventListener? onPointerPanZoomStart,
  PointerPanZoomUpdateEventListener? onPointerPanZoomUpdate,
  PointerPanZoomEndEventListener? onPointerPanZoomEnd,
  PointerSignalEventListener? onPointerSignal,
  HitTestBehavior behavior = HitTestBehavior.deferToChild,
}) =>
    Listener(
      onPointerDown: onPointerDown,
      onPointerMove: onPointerMove,
      onPointerUp: onPointerUp,
      onPointerHover: onPointerHover,
      onPointerCancel: onPointerCancel,
      onPointerPanZoomStart: onPointerPanZoomStart,
      onPointerPanZoomUpdate: onPointerPanZoomUpdate,
      onPointerPanZoomEnd: onPointerPanZoomEnd,
      onPointerSignal: onPointerSignal,
      behavior: behavior,
      child: this,
    );