onClick property
void Function()?
onClick
getter/setter pair
Callback function to be invoked when the menu item is clicked
Implementation
void Function()? onClick;
Callback function to be invoked when the menu item is clicked
void Function()? onClick;