getValue

open operator fun getValue(stateOwner: StateOwner<State>, property: KProperty<*>): StateFlow<State>

Allows using delegation to access the StateHolder.state property.

Example:

val state: StateFlow<State> by stateContainer