build method
Widget
build({
- required HitTestBehavior behavior,
- required Widget child,
- Key? key,
- 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);
}