ModulaBadge constructor

const ModulaBadge({
  1. Key? key,
  2. BadgeShape shape = BadgeShape.pill,
  3. BadgeType type = BadgeType.custom,
  4. Color color = Colors.red,
  5. double? height = 3,
  6. String? label,
  7. IconData? icon,
  8. int? count,
  9. bool showBorder = false,
  10. Color borderColor = Colors.white,
  11. double borderWidth = 1.0,
  12. TextStyle? textStyle,
  13. double? width,
  14. EdgeInsets? padding,
})

Implementation

const ModulaBadge({
  super.key,
  this.shape = BadgeShape.pill,
  this.type = BadgeType.custom,
  this.color = Colors.red,
  this.height = 3,
  this.label,
  this.icon,
  this.count,
  this.showBorder = false,
  this.borderColor = Colors.white,
  this.borderWidth = 1.0,
  this.textStyle,
  this.width,
  this.padding,
});