onPressed property

VoidCallback onPressed
final

The callback to be called when the button is pressed.

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

Implementation

final VoidCallback onPressed;