PopupMenuButton<T> constructor
PopupMenuButton<T> ({
- required List<
PopupMenuEntry< items,T> > - ValueCmdCallback<
T> ? onSelected, - CmdCallback? onCanceled,
- T? initialValue,
- Widget? child,
- Widget? icon,
- bool enabled = true,
- ButtonSize size = ButtonSize.small,
- ButtonVariant variant = ButtonVariant.outline,
- EdgeInsets? itemPadding,
- Key? key,
Implementation
PopupMenuButton({
required this.items,
this.onSelected,
this.onCanceled,
this.initialValue,
this.child,
this.icon,
this.enabled = true,
this.size = ButtonSize.small,
this.variant = ButtonVariant.outline,
this.menuBorder = Border.rounded,
this.menuBorderColor,
this.menuBackground,
this.menuSelectedBackground,
this.menuSelectedForeground,
this.menuForeground,
this.itemPadding,
super.key,
});