WBadge constructor

const WBadge({
  1. Key? key,
  2. required Widget child,
  3. String? text,
  4. int? count,
  5. String? className,
  6. Color? backgroundColor,
  7. Color? textColor,
  8. double? size,
  9. bool showZero = false,
  10. EdgeInsetsGeometry? padding,
  11. BorderRadius? borderRadius,
  12. AlignmentGeometry alignment = Alignment.topRight,
  13. Offset? offset,
})

Implementation

const WBadge({
  super.key,
  required this.child,
  this.text,
  this.count,
  this.className,
  this.backgroundColor,
  this.textColor,
  this.size,
  this.showZero = false,
  this.padding,
  this.borderRadius,
  this.alignment = Alignment.topRight,
  this.offset,
});