onDragSelectionUpdate method Null safety

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

Handler for TextSelectionGestureDetector.onDragSelectionUpdate.

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

See also:

Implementation

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