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) => Content(style: style, child: child));