errorEventFlow

fun errorEventFlow(): MutableSharedFlow<UiText>(source)

Creates and returns a MutableSharedFlow intended for one-shot error events. Expose as Flow via kotlinx.coroutines.flow.asFlow in the ViewModel (hiding hot-flow semantics), and collect in the UI to show snackbars or toasts.