asStateFlow

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

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

Sources

Link copied to clipboard