handleDragStart method

void handleDragStart(
  1. DragStartDetails details
)

Implementation

void handleDragStart(DragStartDetails details) {
  _isDragging = true;

  final newSelection = selectPositionAt(
    from: details.globalPosition,
    cause: SelectionChangedCause.drag,
  );

  if (newSelection == null) return;
  // Make sure to remember the origin for extend selection.
  _extendSelectionOrigin = newSelection;
}