provide

abstract fun <State, Selected> provide(state: StateFlow<State>, selector: Selector<State, Selected>): StateFlow<Selected>

Provides a StateFlow that observes part of a state using selector.