PropertyState¶
class PropertyState<T>(
state: ComposeItemState,
propertyName: String,
mutableState: MutableState<T>
) : MutableState<T>
A MutableState delegate that forwards writes to ComposeItemState.sendUpdatedProperty, so setting value from a composable both updates local state and pushes the change to the server.
Constructors¶
PropertyState¶
constructor(
state: ComposeItemState,
propertyName: String,
mutableState: MutableState<T>
)
Properties¶
value¶
Functions¶
component1¶
open operator override fun component1(): T
component2¶
open operator override fun component2(): (T) -> Unit