initialDragT function
Logoheadless

initialDragT#

double initialDragT({ required bool value, required bool isRtl})

Computes the initial drag T from the current switch value.

value is the current switch value (true = on). isRtl indicates right-to-left layout direction (affects position).

Returns the initial 0..1 thumb position.