onSecondaryTap method

  1. @protected
void onSecondaryTap()

Handler for TextSelectionGestureDetector.onSecondaryTap.

By default, selects the word if possible and shows the toolbar.

Implementation

@protected
void onSecondaryTap() {
  if (delegate.selectionEnabled) {
    if (!_lastSecondaryTapWasOnSelection) {
      renderEditable.selectWord(cause: SelectionChangedCause.tap);
    }
    if (shouldShowSelectionToolbar) {
      hideToolbar();
      showToolbar();
    }
  }
}