onPressed property

VoidCallback onPressed
final

Callback function invoked when the button is pressed. Defines the action to be performed.

Implementation

final VoidCallback onPressed;