RenderPointerListener constructor Null safety

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

Creates a render object that forwards pointer events to callbacks.

The behavior argument defaults to HitTestBehavior.deferToChild.

Implementation

RenderPointerListener({
  this.onPointerDown,
  this.onPointerMove,
  this.onPointerUp,
  this.onPointerHover,
  this.onPointerCancel,
  this.onPointerPanZoomStart,
  this.onPointerPanZoomUpdate,
  this.onPointerPanZoomEnd,
  this.onPointerSignal,
  super.behavior,
  super.child,
});