updateCopy

fun <T> MutableState<T>.updateCopy(block: Copy<T>.() -> Unit)

Modifies the value in this MutableState by performing the operations in the Copy.


fun <T> MutableStateFlow<T>.updateCopy(block: Copy<T>.() -> Unit)

Updates the value in this MutableStateFlow by performing the operations in the Copy.