buildGestureDetector method
- Key? key,
 - HitTestBehavior? behavior,
 - required Widget child,
 
Returns a TextSelectionGestureDetector configured with the handlers provided by this builder.
The child or its subtree should contain an EditableText whose key is
the GlobalKey provided by the delegate's
TextSelectionGestureDetectorBuilderDelegate.editableTextKey.
Implementation
Widget buildGestureDetector({Key? key, HitTestBehavior? behavior, required Widget child}) {
  return TextSelectionGestureDetector(
    key: key,
    onTapTrackStart: onTapTrackStart,
    onTapTrackReset: onTapTrackReset,
    onTapDown: onTapDown,
    onForcePressStart: delegate.forcePressEnabled ? onForcePressStart : null,
    onForcePressEnd: delegate.forcePressEnabled ? onForcePressEnd : null,
    onSecondaryTap: onSecondaryTap,
    onSecondaryTapDown: onSecondaryTapDown,
    onSingleTapUp: onSingleTapUp,
    onSingleTapCancel: onSingleTapCancel,
    onUserTap: onUserTap,
    onSingleLongTapStart: onSingleLongTapStart,
    onSingleLongTapMoveUpdate: onSingleLongTapMoveUpdate,
    onSingleLongTapEnd: onSingleLongTapEnd,
    onSingleLongTapCancel: onSingleLongTapCancel,
    onDoubleTapDown: onDoubleTapDown,
    onTripleTapDown: onTripleTapDown,
    onDragSelectionStart: onDragSelectionStart,
    onDragSelectionUpdate: onDragSelectionUpdate,
    onDragSelectionEnd: onDragSelectionEnd,
    onUserTapAlwaysCalled: onUserTapAlwaysCalled,
    behavior: behavior,
    child: child,
  );
}