onSingleLongTapStart method Null safety

  1. @protected
void onSingleLongTapStart(
  1. LongPressStartDetails details
)
protected">@protected

Handler for TextSelectionGestureDetector.onSingleLongTapStart.

By default, it selects text position specified in details if selection is enabled.

See also:

Implementation

@protected
void onSingleLongTapStart(LongPressStartDetails details) {
  if (delegate.selectionEnabled) {
    renderEditable.selectPositionAt(
      from: details.globalPosition,
      cause: SelectionChangedCause.longPress,
    );
  }
}