RenderSemanticsGestureHandler constructor

RenderSemanticsGestureHandler({RenderBox child, GestureTapCallback onTap, GestureLongPressCallback onLongPress, GestureDragUpdateCallback onHorizontalDragUpdate, GestureDragUpdateCallback onVerticalDragUpdate, double scrollFactor: 0.8 })

Creates a render object that listens for specific semantic gestures.

The scrollFactor argument must not be null.

Implementation

RenderSemanticsGestureHandler({
  RenderBox child,
  GestureTapCallback onTap,
  GestureLongPressCallback onLongPress,
  GestureDragUpdateCallback onHorizontalDragUpdate,
  GestureDragUpdateCallback onVerticalDragUpdate,
  this.scrollFactor = 0.8
}) : assert(scrollFactor != null),
     _onTap = onTap,
     _onLongPress = onLongPress,
     _onHorizontalDragUpdate = onHorizontalDragUpdate,
     _onVerticalDragUpdate = onVerticalDragUpdate,
     super(child);