errorEventFlow

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

Creates and returns a MutableSharedFlow intended for one-shot error events. Expose as SharedFlow via asSharedFlow in the ViewModel, and collect in the UI to show snackbars or toasts.