onPressed property

VoidCallback? onPressed
final

Callback when the button is pressed.

If null, the button is disabled and interaction effects are disabled.

Implementation

final VoidCallback? onPressed;