IconBadge constructor

const IconBadge({
  1. Key? key,
  2. VoidCallback? onTap,
  3. required Icon icon,
  4. int itemCount = 0,
  5. bool hideZero = false,
  6. Color badgeColor = Colors.red,
  7. Color itemColor = Colors.white,
  8. int maxCount = 99,
  9. double top = 3.0,
  10. double right = 6.0,
})

Implementation

const IconBadge({
  Key? key,
  this.onTap,
  required this.icon,
  this.itemCount = 0,
  this.hideZero = false,
  this.badgeColor = Colors.red,
  this.itemColor = Colors.white,
  this.maxCount = 99,
  this.top = 3.0,
  this.right = 6.0,
}) : super(key: key);