activateItem method

void activateItem(
  1. BuildContext innerContext
)

Activate the current menu item.

Implementation

void activateItem(final BuildContext innerContext) {
  if (menuItemIndex < 0) {
    return;
  }
  final menuItem = widget.menuItems[menuItemIndex];
  innerContext.maybePlaySound(widget.activateItemSound);
  menuItem.onActivate(innerContext);
}