onPressed property
The callback that is called when the menu item is tapped or otherwise activated.
If this is set to null, the menu item will be disabled (greyed out).
Implementation
final VoidCallback? onPressed;
The callback that is called when the menu item is tapped or otherwise activated.
If this is set to null, the menu item will be disabled (greyed out).
final VoidCallback? onPressed;