onPressed property

VoidCallback onPressed
final

The function to call when the button is pressed

Implementation

final VoidCallback onPressed;