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 enabled = true,
  12. TextStyle? titleStyle,
  13. TextStyle? subtitleStyle,
  14. Color? iconColor,
  15. double iconSize = 20.0,
  16. int maxLines = 1,
  17. bool enablePressScale = true,
  18. Duration? closeDelay,
  19. List<Widget>? submenu,
})

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.enabled = true,
  this.titleStyle,
  this.subtitleStyle,
  this.iconColor,
  this.iconSize = 20.0,
  this.maxLines = 1,
  this.enablePressScale = true,
  this.closeDelay,
  this.submenu,
});