stateFlow

fun <T> stateFlow(getValue: () -> T, flow: Flow<T>): StateFlow<T>

Returns StateFlow from flow having initial value from calculation of getValue