onPressed property

VoidCallback? onPressed
final

The callback function executed when the button is pressed.

Implementation

final VoidCallback? onPressed;