SubZeroBadge.count constructor
SubZeroBadge.count({
- Key? key,
- required int count,
- int maxCount = 99,
- SubZeroBadgeStyle style = SubZeroBadgeStyle.filled,
- SubZeroBadgeSize size = SubZeroBadgeSize.medium,
- Widget? child,
- SubZeroBadgeAlignment alignment = const SubZeroBadgeAlignment(),
- bool showBadge = true,
- Color? backgroundColor,
- Color? foregroundColor,
- String? semanticLabel,
Factory constructor for a count badge
Implementation
factory SubZeroBadge.count({
Key? key,
required int count,
int maxCount = 99,
SubZeroBadgeStyle style = SubZeroBadgeStyle.filled,
SubZeroBadgeSize size = SubZeroBadgeSize.medium,
Widget? child,
SubZeroBadgeAlignment alignment = const SubZeroBadgeAlignment(),
bool showBadge = true,
Color? backgroundColor,
Color? foregroundColor,
String? semanticLabel,
}) =>
SubZeroBadge(
key: key,
variant: SubZeroBadgeVariant.count,
count: count,
maxCount: maxCount,
style: style,
size: size,
child: child,
alignment: alignment,
showBadge: showBadge,
backgroundColor: backgroundColor,
foregroundColor: foregroundColor,
semanticLabel: semanticLabel,
);