AppPopupMenu<T> constructor

AppPopupMenu<T>({
  1. Key? key,
  2. List<T>? items,
  3. PopupMenuItemBuilder<T>? itemBuilder,
  4. T? initialValue,
  5. PopupMenuItemSelected<T>? onSelected,
  6. PopupMenuCanceled? onCanceled,
  7. String? tooltip,
  8. double? elevation,
  9. EdgeInsetsGeometry? padding = const EdgeInsets.all(8),
  10. Widget? child,
  11. Widget? icon,
  12. Offset? offset = Offset.zero,
  13. bool? enabled = true,
  14. ShapeBorder? shape,
  15. Color? color,
  16. bool? captureInheritedThemes = true,
})

Supply all the properties to instantiate a custom PopupMenuButton.

Implementation

AppPopupMenu({
  this.key,
  this.items,
  this.itemBuilder,
  this.initialValue,
  this.onSelected,
  this.onCanceled,
  this.tooltip,
  this.elevation,
  this.padding = const EdgeInsets.all(8),
  this.child,
  this.icon,
  this.offset = Offset.zero,
  this.enabled = true,
  this.shape,
  this.color,
  this.captureInheritedThemes = true,
});