buildGestureDetector method

Widget buildGestureDetector (
  1. {Key key,
  2. HitTestBehavior behavior,
  3. Widget child}
)

Returns a TextSelectionGestureDetector configured with the handlers provided by this builder.

The child or its subtree should contain EditableText.

Implementation

Widget buildGestureDetector({
  Key key,
  HitTestBehavior behavior,
  Widget child,
}) {
  return TextSelectionGestureDetector(
    key: key,
    onTapDown: onTapDown,
    onForcePressStart: delegate.forcePressEnabled ? onForcePressStart : null,
    onForcePressEnd: delegate.forcePressEnabled ? onForcePressEnd : null,
    onSingleTapUp: onSingleTapUp,
    onSingleTapCancel: onSingleTapCancel,
    onSingleLongTapStart: onSingleLongTapStart,
    onSingleLongTapMoveUpdate: onSingleLongTapMoveUpdate,
    onSingleLongTapEnd: onSingleLongTapEnd,
    onDoubleTapDown: onDoubleTapDown,
    onDragSelectionStart: onDragSelectionStart,
    onDragSelectionUpdate: onDragSelectionUpdate,
    onDragSelectionEnd: onDragSelectionEnd,
    behavior: behavior,
    child: child,
  );
}