CheckedPopupMenuItem<T> constructor

const CheckedPopupMenuItem<T>({Key key, T value, bool checked: false, bool enabled: true, 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 CheckedPopupMenuItem({
  Key key,
  T value,
  this.checked = false,
  bool enabled = true,
  Widget child,
}) : assert(checked != null),
     super(
  key: key,
  value: value,
  enabled: enabled,
  child: child,
);