trigger method
If the FAB has a sub-menu, then open the sub-menu popup, otherwise only trigger the action callback on the FAB menu item model.
Implementation
void trigger(Event event) {
if (hasMenu) {
_showPopup.value = true;
} else if (menuItem.actionWithContext != null) {
menuItem.actionWithContext!(event);
}
}