onDragStart method

  1. @mustCallSuper
void onDragStart(
  1. DragStartEvent event
)

The user initiated a drag gesture on top of this component.

By default, only one component will receive a drag event. However, setting the property event.continuePropagation to true will allow the event to also reach the components below this one.

Once a component receives the onDragStart event, the subsequent events onDragUpdate, onDragEnd, and onDragCancel with the same pointer id will be delivered to the same component. If multiple components have received the initial onDragStart event, then all of them will be receiving the follow-up events.

Implementation

@mustCallSuper
void onDragStart(DragStartEvent event) {
  _isDragged = true;
}