onDragSelectionEnd method
- TapDragEndDetails details
Handler for TextSelectionGestureDetector.onDragSelectionEnd.
By default, it cleans up the state used for handling certain built-in behaviors.
See also:
- TextSelectionGestureDetector.onDragSelectionEnd, which triggers this callback.
Implementation
@protected
void onDragSelectionEnd(TapDragEndDetails details) {
if (_shouldShowSelectionToolbar && _TextSelectionGestureDetectorState._getEffectiveConsecutiveTapCount(details.consecutiveTapCount) == 2) {
editableText.showToolbar();
}
if (_isShiftPressed) {
_dragStartSelection = null;
}
_hideMagnifierIfSupportedByPlatform();
}