onDragSelectionEnd method

  1. @protected
void onDragSelectionEnd(
  1. TapDragEndDetails details
)

Handler for TextSelectionGestureDetector.onDragSelectionEnd.

By default, it cleans up the state used for handling certain built-in behaviors.

See also:

Implementation

@protected
void onDragSelectionEnd(TapDragEndDetails details) {
  _dragBeganOnPreviousSelection = null;

  if (_shouldShowSelectionToolbar && _TextSelectionGestureDetectorState._getEffectiveConsecutiveTapCount(details.consecutiveTapCount) == 2) {
    editableText.showToolbar();
  }

  if (_isShiftPressed) {
    _dragStartSelection = null;
  }

  _hideMagnifierIfSupportedByPlatform();
}