FastPopupMenuButton2<T> constructor

const FastPopupMenuButton2<T>({
  1. Key? key,
  2. required PopupMenuItemBuilder<T> itemBuilder,
  3. required Widget icon,
  4. Duration trottleTimeDuration = kFastButtonTrottleTimeDuration,
  5. FastButtonEmphasis emphasis = FastButtonEmphasis.low,
  6. Clip overlayClipBehavior = Clip.none,
  7. Offset overlayOffset = Offset.zero,
  8. bool shouldTrottleTime = false,
  9. Color? overlayBackgroundColor,
  10. Color? overlayShadowColor,
  11. bool isEnabled = true,
  12. double? overlayElevation,
  13. PopupMenuPosition? overlayPosition,
  14. Color? highlightColor,
  15. Color? disabledColor,
  16. String? semanticLabel,
  17. Alignment? iconAlignment,
  18. BoxConstraints? constraints,
  19. T? initialValue,
  20. Color? focusColor,
  21. Color? hoverColor,
  22. String? debugLabel,
  23. PopupMenuItemSelected<T>? onSelected,
  24. PopupMenuCanceled? onCanceled,
  25. bool flexible = false,
  26. Color? iconColor,
  27. EdgeInsetsGeometry? padding,
  28. String? tooltip,
  29. VoidCallback? onOpened,
  30. double? iconSize,
  31. VoidCallback? onTap,
  32. FastButtonSize? size,
})

Implementation

const FastPopupMenuButton2({
  super.key,
  required this.itemBuilder,
  required this.icon,
  super.trottleTimeDuration = kFastButtonTrottleTimeDuration,
  super.emphasis = FastButtonEmphasis.low,
  this.overlayClipBehavior = Clip.none,
  this.overlayOffset = Offset.zero,
  super.shouldTrottleTime = false,
  this.overlayBackgroundColor,
  this.overlayShadowColor,
  super.isEnabled = true,
  this.overlayElevation,
  this.overlayPosition,
  super.highlightColor,
  super.disabledColor,
  super.semanticLabel,
  this.iconAlignment,
  super.constraints,
  this.initialValue,
  super.focusColor,
  super.hoverColor,
  super.debugLabel,
  this.onSelected,
  this.onCanceled,
  super.flexible,
  this.iconColor,
  super.padding,
  super.tooltip,
  this.onOpened,
  this.iconSize,
  super.onTap,
  super.size,
});