items property

The list of menu entries for the pull-down menu.

Can be either MacosPulldownMenuItems or MacosPulldownMenuDividers.

If the list of items is null, then the pull-down button will be disabled, i.e. it will be displayed in grey and not respond to input.

If the button overflows the available toolbar width, its items will be shown in a submenu next to the button's ToolbarOverflowMenuItem.

For this reason, you must set the label property of all MacosPulldownMenuItems, as it's necessary for setting the submenu's content.

Implementation

final List<MacosPulldownMenuEntry>? items;