onPressed property

VoidCallback onPressed
final

The onPressed parameter is required and defines the callback function when the button is pressed.

Implementation

final VoidCallback onPressed;