CheckedPopupMenuItem<T> constructor

const CheckedPopupMenuItem<T>({
  1. Key? key,
  2. T? value,
  3. bool checked = false,
  4. bool enabled = true,
  5. EdgeInsets? padding,
  6. double height = kMinInteractiveDimension,
  7. MaterialStateProperty<TextStyle?>? labelTextStyle,
  8. MouseCursor? mouseCursor,
  9. Widget? child,
  10. VoidCallback? onTap,
})

Creates a popup menu item with a checkmark.

By default, the menu item is enabled but unchecked. To mark the item as checked, set checked to true.

Implementation

const CheckedPopupMenuItem({
  super.key,
  super.value,
  this.checked = false,
  super.enabled,
  super.padding,
  super.height,
  super.labelTextStyle,
  super.mouseCursor,
  super.child,
  super.onTap,
});