build method

Widget build({
  1. required HitTestBehavior behavior,
  2. required Widget child,
  3. Key? key,
  4. bool detectWordBoundary = true,
})

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

The child or its subtree should contain EditableText.

Implementation

Widget build({required HitTestBehavior behavior, required Widget child, Key? key, bool detectWordBoundary = true}) {
  return EditorTextSelectionGestureDetector(
      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,
      onSecondarySingleTapUp: onSecondarySingleTapUp,
      onDragSelectionStart: onDragSelectionStart,
      onDragSelectionEnd: onDragSelectionEnd,
      behavior: behavior,
      detectWordBoundary: detectWordBoundary,
      child: child);
}