toMutable

fun <T> StateFlow<T>.toMutable(setter: StateFlow<T>.(T) -> Unit): MutableStateFlow<T>

Converts this StateFlow to a MutableStateFlow that calls setter for doing the actual value update.