onDoubleTapDown method Null safety

  1. @protected
void onDoubleTapDown(
  1. TapDownDetails details
)

Handler for TextSelectionGestureDetector.onDoubleTapDown.

By default, it selects a word through renderEditable.selectWord if selectionEnabled and shows toolbar if necessary.

See also:

Implementation

@protected
void onDoubleTapDown(TapDownDetails details) {
  if (delegate.selectionEnabled) {
    renderEditable.selectWord(cause: SelectionChangedCause.tap);
    if (shouldShowSelectionToolbar) {
      showToolbar();
    }
  }
}