ModPopupButton<T> constructor

const ModPopupButton<T>({
  1. Key? key,
  2. String? title,
  3. IconData? leftIcon,
  4. IconData? rightIcon,
  5. IconData? popupIcon,
  6. double borderRadius = 4.0,
  7. ModButtonType type = ModButtonType.defaultType,
  8. ModBorderType borderType = ModBorderType.solid,
  9. ModButtonSize size = ModButtonSize.md,
  10. required List<ModPopupMenuItem<T>> items,
  11. void onSelected(
    1. T value
    )?,
  12. ModButtonType borderColor = ModButtonType.defaultType,
  13. Color? textColor,
  14. Color? backgroundColor,
  15. bool disabled = false,
  16. bool autosize = true,
  17. TextAlign textAlign = TextAlign.center,
  18. PopupMenuPosition position = PopupMenuPosition.over,
  19. String? tooltip,
  20. Color? popupBackgroundColor,
  21. double? elevation,
  22. ShapeBorder? shape,
  23. EdgeInsets? popupPadding,
  24. double? iconSize,
  25. double? menuFontSize,
  26. double? submenuFontSize,
  27. EdgeInsets? menuItemPadding,
  28. EdgeInsets? submenuItemPadding,
  29. double? iconTextSpacing,
  30. double? submenuOffset,
})

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,
});