onDoubleTapDown method
- TapDragDownDetails details
Handler for TextSelectionGestureDetector.onDoubleTapDown.
By default, it selects a word through RenderEditable.selectWord if selectionEnabled and shows toolbar if necessary.
See also:
- TextSelectionGestureDetector.onDoubleTapDown, which triggers this callback.
Implementation
@protected
void onDoubleTapDown(TapDragDownDetails details) {
if (delegate.selectionEnabled) {
renderEditable.selectWord(cause: SelectionChangedCause.doubleTap);
if (shouldShowSelectionToolbar) {
editableText.showToolbar();
}
}
}