MenuModel<T>.flat constructor

MenuModel<T>.flat(
  1. List<T> items, {
  2. Icon? icon,
  3. dynamic width,
  4. String tooltipText = '',
})

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;
}