ModPopupButton<T> constructor
const
ModPopupButton<T> ({
- Key? key,
- String? title,
- IconData? leftIcon,
- IconData? rightIcon,
- IconData? popupIcon,
- double borderRadius = 4.0,
- ModButtonType type = ModButtonType.defaultType,
- ModBorderType borderType = ModBorderType.solid,
- ModButtonSize size = ModButtonSize.md,
- required List<
ModPopupMenuItem< items,T> > - void onSelected(
- T value
- ModButtonType borderColor = ModButtonType.defaultType,
- Color? textColor,
- Color? backgroundColor,
- bool disabled = false,
- bool autosize = true,
- TextAlign textAlign = TextAlign.center,
- PopupMenuPosition position = PopupMenuPosition.over,
- String? tooltip,
- Color? popupBackgroundColor,
- double? elevation,
- ShapeBorder? shape,
- EdgeInsets? popupPadding,
- double? iconSize,
- double? iconTextSpacing,
Implementation
const ModPopupButton({
super.key,
this.title,
this.leftIcon,
this.rightIcon,
this.popupIcon,
this.borderRadius = 4.0,
this.type = ModButtonType.defaultType,
this.borderType = ModBorderType.solid,
this.size = ModButtonSize.md,
required this.items,
this.onSelected,
this.borderColor = ModButtonType.defaultType,
this.textColor,
this.backgroundColor,
this.disabled = false,
this.autosize = true,
this.textAlign = TextAlign.center,
this.position = PopupMenuPosition.over,
this.tooltip,
this.popupBackgroundColor,
this.elevation,
this.shape,
this.popupPadding,
this.iconSize,
this.menuFontSize,
this.submenuFontSize,
this.menuItemPadding,
this.submenuItemPadding,
this.iconTextSpacing,
this.submenuOffset,
});