PopupMenuItem<T> constructor

const PopupMenuItem<T>({Key key, T value, bool enabled: true, double height: _kMenuItemHeight, @required Widget child })

Creates an item for a popup menu.

By default, the item is enabled.

The height and enabled arguments must not be null.

Implementation

const PopupMenuItem({
  Key key,
  this.value,
  this.enabled = true,
  this.height = _kMenuItemHeight,
  @required this.child,
}) : assert(enabled != null),
     assert(height != null),
     super(key: key);