onSingleLongTapStart method
Handler for EditorTextSelectionGestureDetector.onSingleLongTapStart.
By default, it selects text position specified in details
if selection
is enabled.
See also:
- EditorTextSelectionGestureDetector.onSingleLongTapStart, which triggers this callback.
Implementation
@protected
void onSingleLongTapStart(LongPressStartDetails details) {
if (delegate.selectionEnabled) {
renderEditor!.selectPositionAt(
from: details.globalPosition,
cause: SelectionChangedCause.longPress,
);
}
}