currentMenuItem property

MenuItem? get currentMenuItem

Get the currently focussed menu item.

Implementation

MenuItem? get currentMenuItem {
  final pos = position;
  if (pos != null) {
    return menuItems.elementAt(pos);
  }
  return null;
}