onPressed property

VoidCallback onPressed
final

A callback function that is executed when the button is pressed.

Implementation

final VoidCallback onPressed;