onPressed property

VoidCallback onPressed
final

The function called when the button is pressed.

Implementation

final VoidCallback onPressed;