onDragSelectionStart method

  1. @protected
void onDragSelectionStart (
  1. DragStartDetails details
)
@protected

Handler for TextSelectionGestureDetector.onDragSelectionStart.

By default, it selects a text position specified in details.

See also:

Implementation

@protected
void onDragSelectionStart(DragStartDetails details) {
  renderEditable.selectPositionAt(
    from: details.globalPosition,
    cause: SelectionChangedCause.drag,
  );
}