hasMenu property

bool get hasMenu

True if the menuItem exists and has at least one item.

Implementation

bool get hasMenu => menuItem.subMenu.itemGroups.isNotEmpty;