BadgeButton constructor

const BadgeButton({
  1. Key? key,
  2. required Widget child,
  3. required int counter,
  4. EdgeInsets? margin,
  5. bool badgeShow = true,
  6. String badgeText(
    1. int value
    )?,
  7. Color? badgeTextColor,
  8. double? badgeTextSize,
  9. double? badgePadding,
  10. double? badgeMargin,
  11. BadgeAlign badgeAlign = BadgeAlign.top,
  12. double? borderRadius,
  13. double? paddingSize,
  14. Color? badgeBackground,
  15. dynamic onClick()?,
  16. double? badgeBorderRadius,
  17. double? badgeWidth,
  18. double? badgeHeight,
})

Implementation

const BadgeButton({
  super.key,
  required this.child,
  required this.counter,
  this.margin,
  this.badgeShow = true,
  this.badgeText,
  this.badgeTextColor,
  this.badgeTextSize,
  this.badgePadding,
  this.badgeMargin,
  this.badgeAlign = BadgeAlign.top,
  this.borderRadius,
  this.paddingSize,
  this.badgeBackground,
  this.onClick,
  this.badgeBorderRadius,
  this.badgeWidth,
  this.badgeHeight,
});