PopupMenuItemModifier<T> constructor
const
PopupMenuItemModifier<T> ({
- Key? key,
- Widget? child,
- Key? modifierKey,
- T? value,
- VoidCallback? onTap,
- bool enabled = true,
- double height = kMinInteractiveDimension,
- EdgeInsets? padding,
- TextStyle? textStyle,
- 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,
});