kvision / pl.treksoft.kvision.state / ObservableList

ObservableList

(js) interface ObservableList<T> : MutableList<T>, ObservableState<List<T>>

Observable list interface.

Properties

(js)

onUpdate

abstract val onUpdate: MutableCollection<(MutableList<T>) -> Unit>

Extension Properties

(js)

stateFlow

Extension property returning StateFlow for an ObservableState.

val <S> ObservableState<S>.stateFlow: StateFlow<S>

Inheritors

(js)

ObservableListWrapper

Simple observable list implementation.

class ObservableListWrapper<T> : MutableList<T>, ObservableList<T>, ObservableState<List<T>>