GetPopupMenu<T extends Object> constructor

const GetPopupMenu<T extends Object>({
  1. GetPopupMenuChildBuilder? childBuilder,
  2. GetPopupMenuItemBuilder<T>? itemBuilder,
  3. GetPopupMenuSeparatorBuilder<T>? separatorBuilder,
  4. GetPopupMenuItemSelected<T>? onSelected,
  5. VoidCallback? onCanceled,
  6. required List<T> items,
  7. int? initialSelected,
  8. double elevation = 12,
  9. double cornerRadius = 16,
  10. double? itemHeight = 36,
  11. double? itemPadding = 4,
  12. double? titleSize = 14,
  13. double? accessorySize = 20,
  14. Color? tintColor,
  15. Color? backgroundColor,
  16. EdgeInsets padding = const EdgeInsets.symmetric(horizontal: 12),
  17. Offset? offset,
  18. bool enabled = true,
  19. bool autoTint = false,
  20. bool separator = true,
  21. bool useRootNavigator = false,
  22. String? semanticLabel,
  23. Key? key,
})

Creates a widget that shows a popup menu.

The items argument must not be null.

Implementation

const GetPopupMenu({
  this.childBuilder,
  this.itemBuilder,
  this.separatorBuilder,
  this.onSelected,
  this.onCanceled,
  required this.items,
  this.initialSelected,
  this.elevation = 12,
  this.cornerRadius = 16,
  this.itemHeight = 36,
  this.itemPadding = 4,
  this.titleSize = 14,
  this.accessorySize = 20,
  this.tintColor,
  this.backgroundColor,
  this.padding = const EdgeInsets.symmetric(horizontal: 12),
  this.offset,
  this.enabled = true,
  this.autoTint = false,
  this.separator = true,
  this.useRootNavigator = false,
  this.semanticLabel,
  Key? key,
}) : super(key: key);