onDragStart method

  1. @override
bool onDragStart(
  1. DragStartEvent event
)
override

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

@override
bool onDragStart(DragStartEvent event) {
  super.onDragStart(event);
  return false;
}