GlassBadge constructor

const GlassBadge({
  1. Key? key,
  2. required Widget child,
  3. String? label,
  4. bool show = true,
  5. Color? color,
  6. Offset offset = const Offset(6, -6),
})

Creates a badge over child.

Implementation

const GlassBadge({
  super.key,
  required this.child,
  this.label,
  this.show = true,
  this.color,
  this.offset = const Offset(6, -6),
});