FastPopupMenuButton2<T> constructor
const
FastPopupMenuButton2<T> ({
- Key? key,
- required PopupMenuItemBuilder<
T> itemBuilder, - required Widget icon,
- Duration trottleTimeDuration = kFastButtonTrottleTimeDuration,
- FastButtonEmphasis emphasis = FastButtonEmphasis.low,
- Clip overlayClipBehavior = Clip.none,
- Offset overlayOffset = Offset.zero,
- bool shouldTrottleTime = false,
- Color? overlayBackgroundColor,
- Color? overlayShadowColor,
- bool isEnabled = true,
- double? overlayElevation,
- PopupMenuPosition? overlayPosition,
- Color? highlightColor,
- Color? disabledColor,
- String? semanticLabel,
- Alignment? iconAlignment,
- BoxConstraints? constraints,
- T? initialValue,
- Color? focusColor,
- Color? hoverColor,
- String? debugLabel,
- PopupMenuItemSelected<
T> ? onSelected, - PopupMenuCanceled? onCanceled,
- bool flexible = false,
- Color? iconColor,
- EdgeInsetsGeometry? padding,
- String? tooltip,
- VoidCallback? onOpened,
- double? iconSize,
- VoidCallback? onTap,
- 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,
});