MenuEntry<P> constructor

MenuEntry<P>(
  1. dynamic name, {
  2. dynamic icon,
  3. dynamic title,
  4. Iterable<MenuItem>? subMenu,
  5. Function? action,
  6. P? payload,
})

Implementation

MenuEntry(dynamic name,
    {dynamic icon,
    dynamic title,
    Iterable<MenuItem>? subMenu,
    this.action,
    this.payload}) {
  this.icon = icon;
  this.name = name;
  this.title = title;

  if (subMenu != null) {
    this.subMenu = subMenu.toList();
  }
}