menu property
Optional list of menu items to display in a dropdown when the button is pressed.
If this list is non-empty, pressing the button will show a dropdown menu with these items, overriding the onPressed callback. If empty, the onPressed callback is used as normal.
Implementation
final List<MenuItem> menu;