AppMenu<T> constructor

AppMenu<T>({
  1. Key? key,
  2. List<T>? items,
  3. List<PopupMenuEntry<T>>? menuEntries,
  4. PopupMenuItemBuilder<T>? itemBuilder,
  5. T? initialValue,
  6. PopupMenuItemSelected<T>? onSelected,
  7. PopupMenuCanceled? onCanceled,
  8. String? tooltip,
  9. double? elevation,
  10. EdgeInsetsGeometry? padding,
  11. Widget? child,
  12. double? splashRadius,
  13. Widget? icon,
  14. double? iconSize,
  15. Offset? offset,
  16. bool? enabled,
  17. ShapeBorder? shape,
  18. Color? color,
  19. bool? enableFeedback,
  20. BoxConstraints? constraints,
  21. PopupMenuPosition? position,
})

Supply all the properties to instantiate a custom PopupMenuButton.

Implementation

AppMenu({
  this.key,
  this.items,
  this.menuEntries,
  this.itemBuilder,
  this.initialValue,
  this.onSelected,
  this.onCanceled,
  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, // Either PopupMenuPosition.over or PopupMenuPosition.under
});