Component - StateFlow and SharedFlow
This UI component demonstrates how StateFlow and SharedFlow work in Android Kotlin for managing and sharing state and events in a reactive way.
StateFlow holds a current state and emits updates, while SharedFlow emits events to multiple subscribers without holding state.