onPressed property
void Function()
onPressed
getter/setter pair
Callback function to be executed when the button is pressed.
Implementation
void Function() onPressed;
Callback function to be executed when the button is pressed.
void Function() onPressed;