onPressed property

VoidCallback? onPressed
final

Called when this menu is tapped or otherwise activated.

If a callback is not provided, then the button will be disabled.

Implementation

final VoidCallback? onPressed;