onPressed property

VoidCallback? onPressed
final

The callback to be called when the button is pressed.

If disabled is true, this will be ignored.

Implementation

final VoidCallback? onPressed;