PopupMenuItemModifier<T> constructor

const PopupMenuItemModifier<T>({
  1. Key? key,
  2. Widget? child,
  3. Key? modifierKey,
  4. T? value,
  5. VoidCallback? onTap,
  6. bool enabled = true,
  7. double height = kMinInteractiveDimension,
  8. EdgeInsets? padding,
  9. TextStyle? textStyle,
  10. MouseCursor? mouseCursor,
})

Creates an item for a popup menu.

By default, the item is enabled.

The enabled and height arguments must not be null.

Implementation

const PopupMenuItemModifier({
  super.key,
  super.child,
  super.modifierKey,
  this.value,
  this.onTap,
  this.enabled = true,
  this.height = kMinInteractiveDimension,
  this.padding,
  this.textStyle,
  this.mouseCursor,
});