PopupMenuButton<T> constructor

PopupMenuButton<T>({
  1. required List<PopupMenuEntry<T>> items,
  2. ValueCmdCallback<T>? onSelected,
  3. CmdCallback? onCanceled,
  4. T? initialValue,
  5. Widget? child,
  6. Widget? icon,
  7. bool enabled = true,
  8. ButtonSize size = ButtonSize.small,
  9. ButtonVariant variant = ButtonVariant.outline,
  10. Border? menuBorder = Border.rounded,
  11. Color? menuBorderColor,
  12. Color? menuBackground,
  13. Color? menuSelectedBackground,
  14. Color? menuSelectedForeground,
  15. Color? menuForeground,
  16. EdgeInsets? itemPadding,
  17. Key? key,
})

Implementation

PopupMenuButton({
  required this.items,
  this.onSelected,
  this.onCanceled,
  this.initialValue,
  this.child,
  this.icon,
  this.enabled = true,
  this.size = ButtonSize.small,
  this.variant = ButtonVariant.outline,
  this.menuBorder = Border.rounded,
  this.menuBorderColor,
  this.menuBackground,
  this.menuSelectedBackground,
  this.menuSelectedForeground,
  this.menuForeground,
  this.itemPadding,
  super.key,
});