MutableState

interface MutableState<T> : State<T> (source)

A State whose value can be updated.

Updating the value will trigger notifications to all observing scopes.

Properties

Link copied to clipboard
abstract override var value: T

The current value of the state.

Functions

Link copied to clipboard
operator fun <T> State<T>.getValue(thisRef: Any?, property: KProperty<*>): T

Delegate for reading State values using the by keyword.

Link copied to clipboard
operator fun <T> MutableState<T>.setValue(thisRef: Any?, property: KProperty<*>, value: T)

Delegate for updating MutableState values using the by keyword.