valueChanges

Create a InitialValueFlow of value change events on the Slider instance where the value emitted is the current value of the Slider.

Note: Created flow keeps a strong reference to the Slider instance until the coroutine that launched the flow collector is cancelled.

Example of usage:

slider.valueChanges()
.onEach { value ->
// handle value
}
.launchIn(uiScope)