MenuItem.submenu constructor

MenuItem.submenu({
  1. String? key,
  2. String? label,
  3. String? sublabel,
  4. String? toolTip,
  5. String? icon,
  6. bool disabled = false,
  7. Menu? submenu,
  8. void onClick(
    1. MenuItem menuItem
    )?,
  9. void onHighlight(
    1. MenuItem menuItem
    )?,
  10. void onLoseHighlight(
    1. MenuItem menuItem
    )?,
})

Implementation

MenuItem.submenu({
  this.key,
  this.label,
  this.sublabel,
  this.toolTip,
  this.icon,
  this.disabled = false,
  this.submenu,
  this.onClick,
  this.onHighlight,
  this.onLoseHighlight,
})  : id = _generateMenuItemId(),
      type = 'submenu';