DropdownMenuItem<T> constructor

const DropdownMenuItem<T>({Key key, T value, @required Widget child })

Creates an item for a dropdown menu.

The child argument is required.

Implementation

const DropdownMenuItem({
  Key key,
  this.value,
  @required this.child,
}) : assert(child != null),
     super(key: key);