open class ObservableValue<T> : ObservableState<T>
The observable value class.
(js)
<init> |
The observable value class. ObservableValue(value: T) |
(js)
observers |
val observers: MutableList<(T) -> Unit> |
(js)
value |
The observed variable. var value: T |
(js)
getState |
Get current state. open fun getState(): T |
(js)
subscribe |
Subscribe for the state change notifications. open fun subscribe(observer: (T) -> Unit): () -> Unit |
(js)
stateFlow |
Extension property returning StateFlow for an ObservableState. val <S> ObservableState<S>.stateFlow: StateFlow<S> |