GlassMenuItem constructor
const
GlassMenuItem({
- required String title,
- required VoidCallback onTap,
- Key? key,
- Widget? icon,
- bool isDestructive = false,
- Widget? trailing,
- double height = 44.0,
- String? subtitle,
- bool? isPressed,
- bool isSelected = false,
- bool enabled = true,
- TextStyle? titleStyle,
- TextStyle? subtitleStyle,
- Color? iconColor,
- double iconSize = 20.0,
- int maxLines = 1,
- bool enablePressScale = true,
- Duration? closeDelay,
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,
});