PopupMenuItem<T> constructor
- Key? key,
- T? value,
- VoidCallback? onTap,
- bool enabled = true,
- double height = kMinInteractiveDimension,
- EdgeInsets? padding,
- TextStyle? textStyle,
- MaterialStateProperty<
TextStyle?> ? labelTextStyle, - MouseCursor? mouseCursor,
- required Widget? child,
Creates an item for a popup menu.
By default, the item is enabled
.
Implementation
const PopupMenuItem({
super.key,
this.value,
this.onTap,
this.enabled = true,
this.height = kMinInteractiveDimension,
this.padding,
this.textStyle,
this.labelTextStyle,
this.mouseCursor,
required this.child,
});