ZeroBadge constructor
const
ZeroBadge({
- Key? key,
- ZeroBadgePosition position = ZeroBadgePosition.topRight,
- ZeroBadgeType type = ZeroBadgeType.standard,
- required Widget child,
- double childSize = 24,
- String? badgeText,
- VoidCallback? onTap,
- StackFit stackFit = StackFit.loose,
- Color? badgeColor,
- Color badgeTextColor = Colors.white,
- EdgeInsets? padding,
Implementation
const ZeroBadge({
Key? key,
this.position = ZeroBadgePosition.topRight,
this.type = ZeroBadgeType.standard,
required this.child,
this.childSize = 24,
this.badgeText,
this.onTap,
this.stackFit = StackFit.loose,
this.badgeColor,
this.badgeTextColor = Colors.white,
this.padding,
}) : super(key: key);