kSwitchFlingVelocityThreshold constant
Logoheadless

kSwitchFlingVelocityThreshold#

const double kSwitchFlingVelocityThreshold

Velocity threshold for fling-to-toggle behavior (px/sec).

If the fling velocity exceeds this threshold, the switch will toggle regardless of the current drag position.

This matches Flutter's actual Switch implementation (300.0 px/s).