onDragSelectionUpdate method

  1. @protected
void onDragSelectionUpdate (
  1. DragStartDetails startDetails,
  2. DragUpdateDetails updateDetails
)
@protected

Handler for TextSelectionGestureDetector.onDragSelectionUpdate.

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

See also:

Implementation

@protected
void onDragSelectionUpdate(DragStartDetails startDetails, DragUpdateDetails updateDetails) {
  renderEditable.selectPositionAt(
    from: startDetails.globalPosition,
    to: updateDetails.globalPosition,
    cause: SelectionChangedCause.drag,
  );
}