SMenuItem<T>.clickable constructor

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

Implementation

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