VoidCallback onPressed
read-only

The callback to be called when the button is pressed. Must not be null.

This callback will be called at most once each time this action is displayed in a SnackBar.