SnackbarAction

data class SnackbarAction(val name: String, val action: () -> Unit)

Data class representing an action that can be performed from a Snackbar.

Constructors

Link copied to clipboard
constructor(name: String, action: () -> Unit)

Properties

Link copied to clipboard
val action: () -> Unit

The lambda function to be executed when the action button is clicked.

Link copied to clipboard

The text to display for the action button.