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