blocState

@JvmName(name = "blocState")
fun <State : Any, Proposal : Any> blocState(block: BlocStateBuilder<State, Proposal>.() -> Unit): BlocState<State, Proposal>

Creates a BlocState instance using a BlocStateBuilder

    blocState<State, Proposal> {
initialState = SomeState
accept { proposal, state ->
// map Proposal to State
}
}

@JvmName(name = "blocStateInitialValue")
fun <State : Any> blocState(initialState: State): BlocState<State, State>

Creates a BlocState instance using a SimpleBlocStateBuilder (Proposal == State -> no accept function needed):

    blocState<State>(SomeState)