PopupMenuButtonModifier<T> constructor
const
PopupMenuButtonModifier<T> ({
- Key? key,
- Widget? child,
- Key? modifierKey,
- required PopupMenuItemBuilder<
T> itemBuilder, - T? initialValue,
- PopupMenuItemSelected<
T> ? onSelected, - PopupMenuCanceled? onCanceled,
- String? tooltip,
- double? elevation,
- EdgeInsetsGeometry padding = const EdgeInsets.all(8.0),
- double? splashRadius,
- Widget? icon,
- double? iconSize,
- Offset offset = Offset.zero,
- bool enabled = true,
- ShapeBorder? shape,
- Color? color,
- bool? enableFeedback,
- BoxConstraints? constraints,
- PopupMenuPosition position = PopupMenuPosition.over,
Creates a button that shows a popup menu.
The itemBuilder
argument must not be null.
Implementation
const PopupMenuButtonModifier({
super.key,
super.child,
super.modifierKey,
required this.itemBuilder,
this.initialValue,
this.onSelected,
this.onCanceled,
this.tooltip,
this.elevation,
this.padding = const EdgeInsets.all(8.0),
this.splashRadius,
this.icon,
this.iconSize,
this.offset = Offset.zero,
this.enabled = true,
this.shape,
this.color,
this.enableFeedback,
this.constraints,
this.position = PopupMenuPosition.over,
});