PopupMenuWidget<T> constructor

PopupMenuWidget<T>({
  1. Key? key,
  2. PopupMenuControllerMixin<T>? controller,
  3. List<T>? items,
  4. List<PopupMenuEntry<T>>? menuEntries,
  5. PopupMenuItemBuilder<T>? itemBuilder,
  6. T? initialValue,
  7. VoidCallback? inOpened,
  8. PopupMenuItemSelected<T>? inSelected,
  9. PopupMenuCanceled? inCanceled,
  10. String? tooltip,
  11. double? elevation,
  12. EdgeInsetsGeometry? padding,
  13. Widget? child,
  14. double? splashRadius,
  15. Widget? icon,
  16. double? iconSize,
  17. Offset? offset,
  18. bool? enabled,
  19. ShapeBorder? shape,
  20. Color? color,
  21. bool? enableFeedback,
  22. BoxConstraints? constraints,
  23. PopupMenuPosition? position,
  24. Clip? clipBehavior,
  25. String? inTooltip()?,
  26. double? inElevation()?,
  27. EdgeInsetsGeometry? inPadding()?,
  28. double? inSplashRadius()?,
  29. Widget? inChild()?,
  30. Widget? inIcon()?,
  31. double? inIconSize()?,
  32. Offset? inOffset()?,
  33. bool? inEnabled()?,
  34. ShapeBorder? inShape()?,
  35. Color? inColor()?,
  36. bool? inEnableFeedback()?,
  37. BoxConstraints? inConstraints()?,
  38. PopupMenuPosition? inPosition()?,
  39. Clip? inClipBehavior()?,
})

A controller takes precedence over the supplied properties and functions

Implementation

PopupMenuWidget({
  super.key,
  PopupMenuControllerMixin<T>? controller,
  this.items,
  this.menuEntries,
  this.itemBuilder,
  this.initialValue,
  this.inOpened,
  this.inSelected,
  this.inCanceled,
  this.tooltip,
  this.elevation,
  this.padding,
  this.child,
  this.splashRadius,
  this.icon,
  this.iconSize,
  this.offset,
  this.enabled,
  this.shape,
  this.color,
  this.enableFeedback,
  this.constraints,
  this.position,
  this.clipBehavior,
  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,
  this.inClipBehavior,
}) : _con = controller ?? _PopupMenuController<T>();