PopupMenu<T> constructor
const
PopupMenu<T> ({
- Key? key,
- List<
T> ? items, - PopupMenuItemBuilder<
T> ? itemBuilder, - T? initialValue,
- PopupMenuItemSelected<
T> ? onSelected, - PopupMenuCanceled? onCanceled,
- String? tooltip,
- double? elevation,
- EdgeInsetsGeometry? padding,
- double? splashRadius,
- Widget? child,
- Widget? icon,
- double? iconSize,
- Offset? offset,
- bool? enabled,
- ShapeBorder? shape,
- Color? color,
- bool? enableFeedback,
- BoxConstraints? constraints,
- PopupMenuPosition? position,
- String? inTooltip()?,
- double? inElevation()?,
- EdgeInsetsGeometry? inPadding()?,
- double? inSplashRadius()?,
- Widget? inChild()?,
- Widget? inIcon()?,
- double? inIconSize()?,
- Offset? inOffset()?,
- bool? inEnabled()?,
- ShapeBorder? inShape()?,
- Color? inColor()?,
- bool? inEnableFeedback()?,
- BoxConstraints? inConstraints()?,
- PopupMenuPosition? inPosition()?,
Supply all the properties to instantiate a custom PopupMenuButton.
Implementation
const PopupMenu({
super.key,
this.items,
this.menuEntries,
this.itemBuilder,
this.initialValue,
this.onSelected,
this.onCanceled,
this.tooltip,
this.elevation,
this.padding,
this.splashRadius,
this.child,
this.icon,
this.iconSize,
this.offset,
this.enabled,
this.shape,
this.color,
this.enableFeedback,
this.constraints,
this.position,
this.inTooltip,
this.inElevation,
this.inPadding,
this.inSplashRadius,
this.inChild,
this.inIcon,
this.inIconSize,
this.inOffset,
this.inEnabled,
this.inShape,
this.inColor,
this.inEnableFeedback,
this.inConstraints,
this.inPosition,
});