SubZeroBadge constructor

const SubZeroBadge({
  1. Key? key,
  2. SubZeroBadgeVariant variant = SubZeroBadgeVariant.dot,
  3. int count = 0,
  4. int maxCount = 99,
  5. SubZeroBadgeStyle style = SubZeroBadgeStyle.filled,
  6. SubZeroBadgeSize size = SubZeroBadgeSize.medium,
  7. Widget? child,
  8. SubZeroBadgeAlignment alignment = const SubZeroBadgeAlignment(),
  9. bool showBadge = true,
  10. Color? backgroundColor,
  11. Color? foregroundColor,
  12. String? semanticLabel,
})

Implementation

const SubZeroBadge({
  super.key,
  this.variant = SubZeroBadgeVariant.dot,
  this.count = 0,
  this.maxCount = 99,
  this.style = SubZeroBadgeStyle.filled,
  this.size = SubZeroBadgeSize.medium,
  this.child,
  this.alignment = const SubZeroBadgeAlignment(),
  this.showBadge = true,
  this.backgroundColor,
  this.foregroundColor,
  this.semanticLabel,
});