GlassToolbarItem constructor

const GlassToolbarItem({
  1. Key? key,
  2. required Widget icon,
  3. required VoidCallback? onPressed,
  4. String? semanticLabel,
  5. bool selected = false,
  6. Color? tint,
  7. double size = 44,
})

Creates a toolbar item that shows icon.

Implementation

const GlassToolbarItem({
  super.key,
  required this.icon,
  required this.onPressed,
  this.semanticLabel,
  this.selected = false,
  this.tint,
  this.size = 44,
});