onDragSelectionUpdate method

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

Handler for EditorTextSelectionGestureDetector.onDragSelectionUpdate.

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

See also:

  • EditorTextSelectionGestureDetector.onDragSelectionUpdate, which triggers this callback./lib/src/material/text_field.dart

Implementation

@protected
void onDragSelectionUpdate(DragStartDetails startDetails, DragUpdateDetails updateDetails) {
  renderEditor!.extendSelection(updateDetails.globalPosition, cause: SelectionChangedCause.drag);
}