TextSelectionGestureDetector constructor

const TextSelectionGestureDetector(
  1. {Key key,
  2. GestureTapDownCallback onTapDown,
  3. GestureForcePressStartCallback onForcePressStart,
  4. GestureForcePressEndCallback onForcePressEnd,
  5. GestureTapUpCallback onSingleTapUp,
  6. GestureTapCancelCallback onSingleTapCancel,
  7. GestureLongPressStartCallback onSingleLongTapStart,
  8. GestureLongPressMoveUpdateCallback onSingleLongTapMoveUpdate,
  9. GestureLongPressEndCallback onSingleLongTapEnd,
  10. GestureTapDownCallback onDoubleTapDown,
  11. GestureDragStartCallback onDragSelectionStart,
  12. DragSelectionUpdateCallback onDragSelectionUpdate,
  13. GestureDragEndCallback onDragSelectionEnd,
  14. HitTestBehavior behavior,
  15. @required Widget child}
)

Create a TextSelectionGestureDetector.

Multiple callbacks can be called for one sequence of input gesture. The child parameter must not be null.

Implementation

const TextSelectionGestureDetector({
  Key key,
  this.onTapDown,
  this.onForcePressStart,
  this.onForcePressEnd,
  this.onSingleTapUp,
  this.onSingleTapCancel,
  this.onSingleLongTapStart,
  this.onSingleLongTapMoveUpdate,
  this.onSingleLongTapEnd,
  this.onDoubleTapDown,
  this.onDragSelectionStart,
  this.onDragSelectionUpdate,
  this.onDragSelectionEnd,
  this.behavior,
  @required this.child,
}) : assert(child != null),
     super(key: key);