onTap property
dynamic Function()
onTap
getter/setter pair
The callback function to be executed when the menu option is tapped.
This function defines the action that occurs when the user selects this option from the menu.
Implementation
Function() onTap;