onPressed property

VoidCallback? onPressed
final

The callback that is called when the button is tapped.

If this is set to null, the button will be disabled.

Implementation

final VoidCallback? onPressed;