NamespacedStateFlowStore

A wrapper StateFlowStore that prefixes every key with a namespace.

This is useful for preventing name clashes when passing StateFlowStores to sub-components.

Constructors

Link copied to clipboard
constructor(store: StateFlowStore, namespace: String)

Functions

Link copied to clipboard
open operator override fun contains(key: String): Boolean
Link copied to clipboard
open override fun <T> getData(key: String, default: T): MutableStateFlow<T>
Link copied to clipboard
fun <T> StateFlowStore.getData(default: T): ReadOnlyProperty<Any?, MutableStateFlow<T>>

For use with by delegation. Returns the StateFlowStore entry for the key that equals the property name.