root property
MenuGroupData
get
root
Gets the root menu group in the hierarchy.
Traverses up the parent chain to find the topmost menu group.
Returns the root MenuGroupData.
Implementation
MenuGroupData get root {
var menuGroupData = parent;
if (menuGroupData == null) {
return this;
}
return menuGroupData.root;
}