PopupMenuButtonModifier<T> constructor

const PopupMenuButtonModifier<T>({
  1. Key? key,
  2. Widget? child,
  3. Key? modifierKey,
  4. required PopupMenuItemBuilder<T> itemBuilder,
  5. T? initialValue,
  6. PopupMenuItemSelected<T>? onSelected,
  7. PopupMenuCanceled? onCanceled,
  8. String? tooltip,
  9. double? elevation,
  10. EdgeInsetsGeometry padding = const EdgeInsets.all(8.0),
  11. double? splashRadius,
  12. Widget? icon,
  13. double? iconSize,
  14. Offset offset = Offset.zero,
  15. bool enabled = true,
  16. ShapeBorder? shape,
  17. Color? color,
  18. bool? enableFeedback,
  19. BoxConstraints? constraints,
  20. 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,
});