StatusBadge constructor
StatusBadge({})
Creates a status badge.
Implementation
StatusBadge({
required String label,
Object? icon,
String? className,
Map<String, Object?> props = const {},
Map<String, Object?> style = const {},
DartStyle? dartStyle,
BadgeVariant variant = BadgeVariant.soft,
Tone tone = Tone.neutral,
ComponentSize size = ComponentSize.sm,
}) : super(
'span',
props: mergeComponentProps(
props,
className: className,
dartStyle: badgeComponentStyle(
variant: variant,
tone: tone,
size: size,
).merge(dartStyle),
style: style,
),
children: [if (icon != null) toFlintNode(icon), FlintText(label)],
);