onPressed property

VoidCallback onPressed
final

Fires when the button is pressed

Implementation

final VoidCallback onPressed;