RenderPointerListener constructor

RenderPointerListener({PointerDownEventListener onPointerDown, PointerMoveEventListener onPointerMove, PointerUpEventListener onPointerUp, PointerCancelEventListener onPointerCancel, PointerSignalEventListener onPointerSignal, HitTestBehavior behavior: HitTestBehavior.deferToChild, 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.onPointerCancel,
  this.onPointerSignal,
  HitTestBehavior behavior = HitTestBehavior.deferToChild,
  RenderBox child,
}) : super(behavior: behavior, child: child);