StateScreenModel

abstract class StateScreenModel<State>(stateHolder: StateHolder<State>) : ScreenModel, StateOwner<State>

Constructors

Link copied to clipboard
constructor(stateProvider: StateProvider<State>)
constructor(initialState: State)
constructor(stateHolder: StateHolder<State>)

Properties

Link copied to clipboard
open override val state: StateFlow<State>

Functions

Link copied to clipboard
fun <T> Flow<T>.collectToState(scope: CoroutineScope = screenModelScope, block: suspend (state: State, value: T) -> State): Job
Link copied to clipboard
open fun onDispose()