action property

SnackBarAction action
final

(optional) An action that the user can take based on the snack bar.

For example, the snack bar might let the user undo the operation that prompted the snackbar. Snack bars can have at most one action.

The action should not be "dismiss" or "cancel".

Implementation

final SnackBarAction action