GlassMenuItem constructor

const GlassMenuItem({
  1. required String title,
  2. required VoidCallback onTap,
  3. Key? key,
  4. Widget? icon,
  5. bool isDestructive = false,
  6. Widget? trailing,
  7. double height = 44.0,
  8. String? subtitle,
  9. bool? isPressed,
  10. bool isSelected = false,
  11. bool? semanticsSelected,
  12. bool enabled = true,
  13. TextStyle? titleStyle,
  14. TextStyle? subtitleStyle,
  15. Color? iconColor,
  16. double iconSize = 20.0,
  17. bool? semanticsChecked,
  18. int maxLines = 1,
  19. bool enablePressScale = true,
  20. Duration? closeDelay,
  21. List<Widget>? submenu,
  22. String? semanticLabel,
})

Creates a glass menu item.

Implementation

const GlassMenuItem({
  required this.title,
  required this.onTap,
  super.key,
  this.icon,
  this.isDestructive = false,
  this.trailing,
  this.height = 44.0,
  this.subtitle,
  this.isPressed,
  this.isSelected = false,
  this.semanticsSelected,
  this.enabled = true,
  this.titleStyle,
  this.subtitleStyle,
  this.iconColor,
  this.iconSize = 20.0,
  this.semanticsChecked,
  this.maxLines = 1,
  this.enablePressScale = true,
  this.closeDelay,
  this.submenu,
  this.semanticLabel,
});