onPressed property

VoidCallback onPressed
final

Callback function to be called when the button is pressed.

Implementation

final VoidCallback onPressed;