onPressed property

VoidCallback onPressed
final

Callback function that is triggered when the button is pressed.

Implementation

final VoidCallback onPressed;