PopupMenu<T> constructor

const PopupMenu<T>({
  1. Key? key,
  2. List<T>? items,
  3. List<PopupMenuEntry<T>>? menuEntries,
  4. PopupMenuItemBuilder<T>? itemBuilder,
  5. T? initialValue,
  6. PopupMenuItemSelected<T>? onSelected,
  7. PopupMenuCanceled? onCanceled,
  8. String? tooltip,
  9. double? elevation,
  10. EdgeInsetsGeometry? padding,
  11. double? splashRadius,
  12. Widget? child,
  13. Widget? icon,
  14. double? iconSize,
  15. Offset? offset,
  16. bool? enabled,
  17. ShapeBorder? shape,
  18. Color? color,
  19. bool? enableFeedback,
  20. BoxConstraints? constraints,
  21. PopupMenuPosition? position,
  22. String? inTooltip()?,
  23. double? inElevation()?,
  24. EdgeInsetsGeometry? inPadding()?,
  25. double? inSplashRadius()?,
  26. Widget? inChild()?,
  27. Widget? inIcon()?,
  28. double? inIconSize()?,
  29. Offset? inOffset()?,
  30. bool? inEnabled()?,
  31. ShapeBorder? inShape()?,
  32. Color? inColor()?,
  33. bool? inEnableFeedback()?,
  34. BoxConstraints? inConstraints()?,
  35. 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,
});