update

inline fun <T> MutableState<T>.update(crossinline block: (T) -> T)(source)

Modifies the value in this MutableState by applying the function block to the current value.