DropdownMenuItem({Key key, T value, Widget child })

Creates an item for a dropdown menu.

The child argument is required.

Source

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