CNToolbarMenu constructor

const CNToolbarMenu({
  1. String? id,
  2. required String label,
  3. required List<CNPopupMenuEntry> items,
  4. CNSymbol? icon,
  5. IconData? customIcon,
  6. CNImageAsset? imageAsset,
  7. String? tooltip,
  8. bool enabled = true,
  9. bool showsIndicator = true,
  10. bool centered = false,
  11. ValueChanged<List<int>>? onSelected,
})

Creates a menu item.

Implementation

const CNToolbarMenu({
  super.id,
  required this.label,
  required this.items,
  this.icon,
  this.customIcon,
  this.imageAsset,
  this.tooltip,
  this.enabled = true,
  this.showsIndicator = true,
  this.centered = false,
  this.onSelected,
});