onSingleLongTapMoveUpdate method Null safety

  1. @protected
void onSingleLongTapMoveUpdate(
  1. LongPressMoveUpdateDetails details
)
protected">@protected

Handler for TextSelectionGestureDetector.onSingleLongTapMoveUpdate.

By default, it updates the selection location specified in details if selection is enabled.

See also:

Implementation

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