FPopupMenu<T> constructor

const FPopupMenu<T>({
  1. Key? key,
  2. required List<PopupMenuEntry<T>> items,
  3. T? initialValue,
  4. VoidCallback? onOpened,
  5. PopupMenuItemSelected<T>? onSelected,
  6. PopupMenuCanceled? onCanceled,
  7. String? tooltip,
  8. double? elevation,
  9. Color? shadowColor,
  10. Color? surfaceTintColor,
  11. EdgeInsetsGeometry padding = const EdgeInsets.all(8.0),
  12. Widget? child,
  13. double? splashRadius,
  14. Offset offset = Offset.zero,
  15. bool enabled = true,
  16. ShapeBorder? shape,
  17. Color? color,
  18. bool? enableFeedback,
  19. BoxConstraints? constraints,
  20. PopupMenuPosition? position,
  21. Clip clipBehavior = Clip.none,
  22. PressType pressType = PressType.tap,
  23. bool addDivider = false,
})

Implementation

const FPopupMenu({
  super.key,
  required this.items,
  this.initialValue,
  this.onOpened,
  this.onSelected,
  this.onCanceled,
  this.tooltip,
  this.elevation,
  this.shadowColor,
  this.surfaceTintColor,
  this.padding = const EdgeInsets.all(8.0),
  this.child,
  this.splashRadius,
  this.offset = Offset.zero,
  this.enabled = true,
  this.shape,
  this.color,
  this.enableFeedback,
  this.constraints,
  this.position,
  this.clipBehavior = Clip.none,
  this.pressType = PressType.tap,
  this.addDivider = false,
});