PopupMenuItem< T> constructor
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);