withConfiguration
inline fun <T : VisibilityState> MutableState<T>.withConfiguration(noinline block: @DisallowComposableCalls T.() -> Unit): MutableState<T>
Configures a MutableState of type VisibilityState with a configuration block.
Applies the provided configuration block to the VisibilityState instance, ensuring that it is applied on recomposition.
Return
The same MutableState with the applied configuration.
Parameters
block
The configuration block to apply to the VisibilityState instance.