onDragSelectionUpdate method
Handler for TextSelectionGestureDetector.onDragSelectionUpdate.
By default, it updates the selection location specified in details
.
See also:
- TextSelectionGestureDetector.onDragSelectionUpdate, which triggers this callback./lib/src/material/text_field.dart
Implementation
@protected
void onDragSelectionUpdate(
DragStartDetails startDetails, DragUpdateDetails updateDetails) {
if (!delegate.selectionEnabled) {
return;
}
renderEditable.selectPositionAt(
from: startDetails.globalPosition,
to: updateDetails.globalPosition,
cause: SelectionChangedCause.drag,
);
}