mutableStateOf

fun <T> mutableStateOf(initialValue: T): MutableState<T>(source)

Creates a caller-owned observable value under the current execution owner. Retain it outside screen evaluation; equal assignments leave observing screens clean.

Return

a new state with no observing screens.

Parameters

initialValue

initial value retained by the returned state.