CustomPopupMenuItem<T> constructor

const CustomPopupMenuItem<T>({
  1. Key? key,
  2. T? value,
  3. bool enabled = true,
  4. double height = kMinInteractiveDimension,
  5. TextStyle? textStyle,
  6. 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 CustomPopupMenuItem({
  Key? key,
  this.value,
  this.enabled = true,
  this.height = kMinInteractiveDimension,
  this.textStyle,
  required this.child,
}) : super(key: key);