onPressed property

VoidCallback? onPressed
final

Callback to call when the action is pressed.

Setting this to null will disable the widget.

Implementation

final VoidCallback? onPressed;