asStateFlow

fun <T> MutableStateFlow<T>.asStateFlow(): StateFlow<T>

Represents this mutable state flow as a read-only state flow.

Sources

common source
Link copied to clipboard