MenuEntry constructor

const MenuEntry({
  1. required String label,
  2. MenuSerializableShortcut? shortcut,
  3. bool isActivated()?,
  4. VoidCallback? onPressed,
  5. List<MenuEntry>? menuChildren,
})

Implementation

const MenuEntry({
  required this.label,
  this.shortcut,
  this.isActivated,
  this.onPressed,
  this.menuChildren,
}) : assert(menuChildren == null || onPressed == null,
          'onPressed is ignored if menuChildren are provided');