PopupMenuItem<T> constructor

const PopupMenuItem<T>({
  1. Key? key,
  2. T? value,
  3. String? cursorStyle,
  4. bool onTapEnabled = true,
  5. bool enabled = true,
  6. double height = kMinInteractiveDimension,
  7. TextStyle? textStyle,
  8. required Widget? child,
})

Creates an item for a popup menu.

By default, the item is enabled.

The enabled and height arguments must not be null.

Implementation

const PopupMenuItem({
  Key? key,
  this.value,
  this.cursorStyle,
  this.onTapEnabled = true,
  this.enabled = true,
  this.height = kMinInteractiveDimension,
  this.textStyle,
  required this.child,
}) : super(key: key);