ToolBarPullDownButton constructor

const ToolBarPullDownButton({
  1. Key? key,
  2. required String label,
  3. required IconData icon,
  4. required List<MacosPulldownMenuEntry>? items,
  5. String? tooltipMessage,
})

Builds a pulldown button suitable for the toolbar.

It essentially wraps a MacosPulldownButton with the appropriate toolbar styling.

If it overflows the available toolbar width, it becomes a ToolbarOverflowMenuItem, that opens a subsequent submenu with the pulldown items.

Implementation

const ToolBarPullDownButton({
  super.key,
  required this.label,
  required this.icon,
  required this.items,
  this.tooltipMessage,
});