MenuEntry constructor
const
MenuEntry({
- required String label,
- MenuSerializableShortcut? shortcut,
- bool isActivated()?,
- VoidCallback? onPressed,
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');