MenuModel<T>.flat constructor
Creates a simple menu model that contains no sub-menus.
Implementation
MenuModel.flat(List<T> items, {this.icon, width, this.tooltipText = ''})
: itemGroups = [MenuItemGroup<T>(items)] {
this.width = width;
}