FBadge constructor

FBadge({
  1. required Widget child,
  2. FBaseBadgeStyle style(
    1. FBadgeStyle
    ) = _primary,
  3. Key? key,
})

Creates a FBadge.

Implementation

FBadge({required Widget child, this.style = _primary, super.key})
  : builder = ((_, style) => Content(style: style, child: child));