MenuItem constructor
MenuItem({})
Implementation
MenuItem({
/// String that will be passed to callbacks referencing this MenuItem.
required String id,
/// Text displayed in the menu for this item.
String? label,
/// The type of menu item.
MenuItemStyle? style,
/// Indicates this item is visible.
bool? visible,
/// Indicates this item should be drawn with a check.
bool? checked,
/// Indicates this item is enabled.
bool? enabled,
}) : _wrapped = $js.MenuItem(
id: id,
label: label,
style: style?.toJS,
visible: visible,
checked: checked,
enabled: enabled,
);