onSingleLongTapStart method

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

Handler for EditorTextSelectionGestureDetector.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) {
    renderEditor!.selectPositionAt(
      from: details.globalPosition,
      cause: SelectionChangedCause.longPress,
    );
  }
}