SubMenu constructor Null safety

const SubMenu(
  1. {required List<MenuEntry> menuItems}
)

A SubMenu is displayed as a submenu with the menuItems field as its items.

Assign a List of either MenuButton or MenuDivider widgets to the menuItems field. The List should contain at least one item.

Implementation

const SubMenu({required this.menuItems}) : super();