setMenus abstract method Null safety
Sets the entire menu hierarchy for a platform-rendered menu bar.
topLevelMenus argument is the list of menus that appear in the menu
bar, which themselves can have children.
To update the menu hierarchy or menu item state, call setMenus with the modified hierarchy, and it will overwrite the previous menu state.
void setMenus(List<PlatformMenuItem> topLevelMenus);