FBadge constructor
FBadge({
- required Widget child,
- FBadgeVariant variant = .primary,
- FBadgeStyleDelta style = const .context(),
- Key? key,
Creates a FBadge.
Implementation
FBadge({required Widget child, this.variant = .primary, this.style = const .context(), super.key})
: builder = ((_, style) => Center(
child: Padding(
padding: style.padding,
child: DefaultTextStyle.merge(style: style.labelTextStyle, child: child),
),
));