PopupMenuWidget<T> constructor
PopupMenuWidget<T> ({
- Key? key,
- PopupMenuControllerMixin<
T> ? controller, - List<
T> ? items, - PopupMenuItemBuilder<
T> ? itemBuilder, - T? initialValue,
- VoidCallback? inOpened,
- PopupMenuItemSelected<
T> ? inSelected, - PopupMenuCanceled? inCanceled,
- String? tooltip,
- double? elevation,
- EdgeInsetsGeometry? padding,
- Widget? child,
- double? splashRadius,
- Widget? icon,
- double? iconSize,
- Offset? offset,
- bool? enabled,
- ShapeBorder? shape,
- Color? color,
- bool? enableFeedback,
- BoxConstraints? constraints,
- PopupMenuPosition? position,
- Clip? clipBehavior,
- 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()?,
- 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>();