collectToState

fun <T> Flow<T>.collectToState(scope: CoroutineScope = coroutineScope, block: suspend (state: State, value: T) -> State): Job