onItemTapped property
The callback that is called when a menu item is tapped.
It gives the ID
of the item and a controller
to
eventually close the menu
Implementation
final void Function(int index, StarMenuController controller)? onItemTapped;
The callback that is called when a menu item is tapped.
It gives the ID
of the item and a controller
to
eventually close the menu
final void Function(int index, StarMenuController controller)? onItemTapped;