GlassContextMenuAction constructor
const
GlassContextMenuAction({
- Key? key,
- required Widget child,
- VoidCallback? onPressed,
- Widget? icon,
- GlassContextMenuIconPosition iconPosition = GlassContextMenuIconPosition.leading,
- bool isDestructive = false,
- bool isSelected = false,
- Widget? trailing,
- double height = 42.0,
- bool enabled = true,
Creates a GlassContextMenuAction.
Implementation
const GlassContextMenuAction({
super.key,
required this.child,
this.onPressed,
this.icon,
this.iconPosition = GlassContextMenuIconPosition.leading,
this.isDestructive = false,
this.isSelected = false,
this.trailing,
this.height = 42.0,
this.enabled = true,
});