onSecondaryTapDown method
- TapDownDetails details
Handler for TextSelectionGestureDetector.onSecondaryTapDown.
See also:
- TextSelectionGestureDetector.onSecondaryTapDown, which triggers this callback.
- onSecondaryTap, which is typically called after this.
Implementation
@protected
void onSecondaryTapDown(TapDownDetails details) {
// TODO(Renzo-Olivares): Migrate text selection gestures away from saving state
// in renderEditable. The gesture callbacks can use the details objects directly
// in callbacks variants that provide them [TapGestureRecognizer.onSecondaryTap]
// vs [TapGestureRecognizer.onSecondaryTapUp] instead of having to track state in
// renderEditable. When this migration is complete we should remove this hack.
// See https://github.com/flutter/flutter/issues/115130.
renderEditable.handleSecondaryTapDown(TapDownDetails(globalPosition: details.globalPosition));
_shouldShowSelectionToolbar = true;
}