onPressed property
The onPressed parameter is required and defines the callback function when the button is pressed.
Implementation
final VoidCallback onPressed;
The onPressed parameter is required and defines the callback function when the button is pressed.
final VoidCallback onPressed;