DynamicBadge constructor
const
DynamicBadge({})
Implementation
const DynamicBadge({
required String label,
required double childSize,
Color? textColor,
Color? backgroundColor,
AlignmentGeometry? alignment,
Widget? child,
super.key,
}) : _label = label,
_textColor = textColor ?? Colors.white,
_backgroundColor = backgroundColor ?? Colors.redAccent,
_alignment = alignment ?? Alignment.center,
_childSize = childSize,
_child = child ?? const SizedBox(),
assert(label.length <= 4, 'Label must be 4 characters or less');