MenuItem constructor

MenuItem({
  1. required String id,
  2. String? label,
  3. MenuItemStyle? style,
  4. bool? visible,
  5. bool? checked,
  6. bool? enabled,
})

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,
      );