GlassContextMenuAction constructor

const GlassContextMenuAction({
  1. Key? key,
  2. required Widget child,
  3. VoidCallback? onPressed,
  4. Widget? icon,
  5. GlassContextMenuIconPosition iconPosition = GlassContextMenuIconPosition.leading,
  6. bool isDestructive = false,
  7. bool isSelected = false,
  8. Widget? trailing,
  9. double height = 42.0,
  10. bool enabled = true,
})

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