Package-level declarations
Functions
Link copied to clipboard
fun <State : Any, SideEffect : Any, Proposal : Any> Bloc<State, Proposal, SideEffect>.asBlocState(): BlocState<State, Proposal>
Converts a Bloc to a BlocState.
Link copied to clipboard
Creates a BlocState instance using a SimpleBlocStateBuilder (Proposal == State -> no accept function needed):
fun <State : Any, Proposal : Any> blocState(block: BlocStateBuilder<State, Proposal>.() -> Unit): BlocState<State, Proposal>
Creates a BlocState instance using a BlocStateBuilder