SliderState
class SliderState(initialValue: Double, val range: ClosedFloatingPointRange<Double> = 0.0..1.0, val steps: Int = 0)(source)
Caller-owned owner-thread numeric state for one Slider.
Values are finite, clamped to range, and quantized to steps evenly spaced interior stops when steps are requested. Distinct normalized writes synchronously invalidate attached retained observers.
Parameters
initialValue
initial value normalized into range.
Constructors
Link copied to clipboard
constructor(initialValue: Double, range: ClosedFloatingPointRange<Double> = 0.0..1.0, steps: Int = 0)