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,
  String? label,
  this.sublabel,
  String? toolTip,
  this.icon,
  bool disabled = false,
  this.submenu,
  this.onClick,
  this.onHighlight,
  this.onLoseHighlight,
}) : id = _generateMenuItemId(),
     type = 'submenu',
     _label = label,
     _toolTip = toolTip,
     _disabled = disabled;