ShowGenericError
fun ScaffoldState.ShowGenericError(message: String = genericErrorString, duration: SnackbarDuration = SnackbarDuration.Short, onGenericErrorDismissed: () -> Unit = {})
Shows a generic error Snackbar at the bottom of the Scaffold.
Parameters
message
text to be shown in the Snackbar
duration
duration to control how long snackbar will be shown in SnackbarHost, either SnackbarDuration.Short, SnackbarDuration.Long or SnackbarDuration.Indefinite
onGenericErrorDismissed
function executed when the Snackbar is dismissed because the duration expires or the user close it