Skip to content

Glossary: Kotlin Beyond the Basics

asStateFlow

Gives a read-only `StateFlow` view of a private `MutableStateFlow`, so only the owning class can change the value.

Where the book teaches it

Related terms

StateFlow