MenuItem constructor
MenuItem({})
Implementation
MenuItem({
this.key,
this.type = 'normal',
String? label,
this.sublabel,
String? toolTip,
this.icon,
bool? checked,
bool disabled = false,
this.submenu,
this.onClick,
this.onHighlight,
this.onLoseHighlight,
}) : id = _generateMenuItemId(),
_label = label,
_toolTip = toolTip,
_checked = checked,
_disabled = disabled;