onClick property

void Function()? onClick
getter/setter pair

Callback function to be invoked when the menu item is clicked

Implementation

void Function()? onClick;