onPressed property

VoidCallback onPressed
final

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.

Implementation

final VoidCallback onPressed