FastPopupMenuButton<T> constructor
const
FastPopupMenuButton<T> ({
- Key? key,
- required PopupMenuItemBuilder<
T> itemBuilder, - required Widget icon,
- T? initialValue,
- VoidCallback? onOpened,
- PopupMenuItemSelected<
T> ? onSelected, - PopupMenuCanceled? onCanceled,
- String? tooltip,
- double? elevation,
- Color? shadowColor,
- Offset offset = Offset.zero,
- bool enabled = true,
- ShapeBorder? shape,
- Color? color,
- BoxConstraints? constraints,
- PopupMenuPosition? position,
- Widget? child,
- Clip clipBehavior = Clip.none,
- EdgeInsetsGeometry? padding,
- double? iconSize,
- Alignment? iconAlignment,
Implementation
const FastPopupMenuButton({
super.key,
required this.itemBuilder,
required this.icon,
this.initialValue,
this.onOpened,
this.onSelected,
this.onCanceled,
this.tooltip,
this.elevation,
this.shadowColor,
this.offset = Offset.zero,
this.enabled = true,
this.shape,
this.color,
this.constraints,
this.position,
this.child,
this.clipBehavior = Clip.none,
EdgeInsetsGeometry? padding,
double? iconSize,
Alignment? iconAlignment,
}) : iconAlignment = iconAlignment ?? Alignment.center,
iconSize = iconSize ?? kFastIconSizeSmall,
padding = padding ?? kFastEdgeInsets8;