onPressed
Event
Description​
Triggers a callback function when the button has been pressed and released. The callback function will be called each time the Button is pressed.
button.onPressed(onPressedCallback);
Example​
Please refer to the Single Press example included in this documentation.