stateFlowOf

suspend fun <M : Any> DB.stateFlowOf(scope: CoroutineScope, type: KClass<M>, key: Key<M>): StateFlow<M?>
inline suspend fun <M : Any> DB.stateFlowOf(scope: CoroutineScope, key: Key<M>): StateFlow<M?>