SnackbarEvent

data class SnackbarEvent(val message: String, val action: SnackbarAction? = null, val duration: SnackbarDuration = SnackbarDuration.Long)

Represents an event that triggers the display of a Snackbar.

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.

Constructors

Link copied to clipboard
constructor(message: String, action: SnackbarAction? = null, duration: SnackbarDuration = SnackbarDuration.Long)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard