Snackbar Event
constructor(message: String, action: SnackbarAction? = null, duration: SnackbarDuration = SnackbarDuration.Long)
Parameters
message
The text message to be displayed in the Snackbar.
action
An optional SnackbarAction that defines an action button for the Snackbar. Defaults to null, meaning no action button will be shown.
duration
The duration for which the Snackbar should be displayed. Defaults to SnackbarDuration.Long.