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,
  this.label,
  this.sublabel,
  this.toolTip,
  this.icon,
  required this.checked,
  this.disabled = false,
  this.onClick,
  this.onHighlight,
  this.onLoseHighlight,
})  : id = _generateMenuItemId(),
      type = 'checkbox';