stateFlowOf

fun <T> stateFlowOf(value: T): StateFlow<T>

Returns a StateFlow that always holds value.

Collectors receive the value once and then suspend forever. Useful as a constant input where an API expects a StateFlow.