FBadge constructor
FBadge({
- required Widget label,
- FBadgeStyle style = FBadgeStyle.primary,
- 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));