dragStartBehavior property Null safety

DragStartBehavior dragStartBehavior

Determines the way that drag start behavior is handled.

If set to DragStartBehavior.start, gesture drag behavior will begin upon the detection of a drag gesture. If set to DragStartBehavior.down it will begin when a down event is first detected.

In general, setting this to DragStartBehavior.start will make drag animation smoother and setting it to DragStartBehavior.down will make drag behavior feel slightly more reactive.

By default, the drag start behavior is DragStartBehavior.start.

Only the DragGestureRecognizer.onStart callbacks for the VerticalDragGestureRecognizer, HorizontalDragGestureRecognizer and PanGestureRecognizer are affected by this setting.

See also:


final DragStartBehavior dragStartBehavior;