onPressed property
The callback that is called when the button is tapped.
This attribute must not be null.
Implementation
final VoidCallback onPressed;
The callback that is called when the button is tapped.
This attribute must not be null.
final VoidCallback onPressed;