onPressed property

VoidCallback onPressed
final

The function to call when this button is pressed.

Implementation

final VoidCallback onPressed;