SMenuItem<T>.label constructor

const SMenuItem<T>.label({
  1. Key? key,
  2. Widget? preview,
  3. Widget? leading,
  4. Widget? trailing,
  5. Widget? title,
  6. SMenuItemStyle style = const SMenuItemStyle(),
})

Implementation

const SMenuItem.label({
  super.key,
  this.preview,
  this.leading,
  this.trailing,
  this.title,
  this.style = const SMenuItemStyle(),
})  : builder = null,
      child = null,
      value = null,
      onPressed = null,
      onToggle = null,
      toggled = null,
      type = SMenuItemType.label;