CheckedPopupMenuItemModifier<T> constructor

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

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.

The checked and enabled arguments must not be null.

Implementation

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