Badge constructor

const Badge(
  1. String label, {
  2. Component? icon,
  3. BadgeStyle? style,
  4. @Deprecated('Use style parameter instead') BadgeVariant? variant,
  5. BadgeSize size = BadgeSize.md,
  6. Key? key,
})

Implementation

const Badge(
  this.label, {
  this.icon,
  this.style,
  @Deprecated('Use style parameter instead') this.variant,
  this.size = BadgeSize.md,
  super.key,
});