onPressed property

VoidCallback onPressed
final

Function that is executed when the button is pressed.

Implementation

final VoidCallback onPressed;