ZeroBadge constructor

const ZeroBadge({
  1. Key? key,
  2. ZeroBadgePosition position = ZeroBadgePosition.topRight,
  3. ZeroBadgeType type = ZeroBadgeType.standard,
  4. required Widget child,
  5. double childSize = 24,
  6. String? badgeText,
  7. VoidCallback? onTap,
  8. StackFit stackFit = StackFit.loose,
  9. Color? badgeColor,
  10. Color badgeTextColor = Colors.white,
  11. 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);