onPressed property

VoidCallback? onPressed
final

The callback to be called when the button is pressed.

Implementation

final VoidCallback? onPressed;