//reactivestate-core/com.ensody.reactivestate/InMemoryStateFlowStore
InMemoryStateFlowStore¶
[common]\ class InMemoryStateFlowStore(val underlyingData: MutableMap<String, Any?> = mutableMapOf()) : StateFlowStore
A StateFlowStore that can be used for unit tests or non-Android parts of multiplatform projects.
Constructors¶
InMemoryStateFlowStore | [common] constructor(underlyingData: MutableMap<String, Any?> = mutableMapOf()) |
Properties¶
Name | Summary |
---|---|
underlyingData | [common] val underlyingData: MutableMap<String, Any?> Optional underlying data which can be used to store and restore the whole state. |
Functions¶
Name | Summary |
---|---|
contains | [common] open operator override fun contains(key: String): Boolean |
getData | [common] open override fun <T> getData(key: String, default: T): MutableValueFlow<T> fun <T> getData(key: String, default: T, setter: (value: T) -> Unit?): MutableValueFlow<T> |
getData | [common] fun <T> StateFlowStore.getData(default: T): ReadOnlyProperty<Any?, MutableValueFlow<T>> For use with by delegation. Returns the StateFlowStore entry for the key that equals the property name. |