BottomPopupMenuItem<T> constructor

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