MenuItem.checkbox constructor

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

Implementation

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