DropdownMenuItem<T> constructor

const DropdownMenuItem<T>(
  1. {Key key,
  2. VoidCallback onTap,
  3. T value,
  4. @required Widget child}
)

Creates an item for a dropdown menu.

The child argument is required.

Implementation

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