FBadge constructor

FBadge({
  1. required Widget label,
  2. FBadgeStyle style = FBadgeStyle.primary,
  3. Key? key,
})

Creates a FBadge that contains a label.

Implementation

FBadge({
  required Widget label,
  this.style = FBadgeStyle.primary,
  super.key,
}) : builder = ((context, style) => Content(label: label, style: style));