dragStartBehavior property Null safety

DragStartBehavior dragStartBehavior
final

Determines the way that drag start behavior is handled.

If set to DragStartBehavior.start, the drag behavior used to move the switch from on to off will begin at the position where the drag gesture won the arena. If set to DragStartBehavior.down it will begin at the position where a down event was 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.

See also:

Implementation

final DragStartBehavior dragStartBehavior;