BadgeWidget constructor

const BadgeWidget({
  1. required Widget child,
  2. int? count,
  3. bool showBadge = true,
  4. BadgePosition position = BadgePosition.topRight,
  5. Color? color,
  6. Key? key,
})

Creates a BadgeWidget.

Implementation

const BadgeWidget({
  required this.child,
  this.count,
  this.showBadge = true,
  this.position = BadgePosition.topRight,
  this.color,
  super.key,
});