trigger method

void trigger()

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() {
  if (hasMenu) {
    _showPopup.value = true;
  } else if (menuItem.action != null) {
    menuItem.action!();
  }
}