PrismBadge constructor

const PrismBadge({
  1. Key? key,
  2. required Widget child,
  3. int count = 0,
  4. int maxCount = 99,
  5. PrismSemantic semantic = PrismSemantic.error,
  6. bool showZero = false,
  7. Alignment alignment = Alignment.topRight,
  8. Offset? offset,
  9. String? label,
})

Creates a count badge.

Implementation

const PrismBadge({
  super.key,
  required this.child,
  this.count = 0,
  this.maxCount = 99,
  this.semantic = PrismSemantic.error,
  this.showZero = false,
  this.alignment = Alignment.topRight,
  this.offset,
  this.label,
}) : _isDot = false;