show Snackbar
suspend fun showSnackbar(message: String, actionLabel: String? = null, withDismissAction: Boolean = false, duration: SnackbarDuration = SnackbarDuration.Short): SnackbarResult
Shows a Snackbar with the provided message.
Return
result of the Snackbar
Parameters
message
text to be shown in the Snackbar
action Label
optional action label to be shown in the Snackbar
with Dismiss Action
whether to show a dismiss action in the Snackbar
duration
duration of the Snackbar