Badge constructor

const Badge({
  1. Key? key,
  2. String? value,
  3. bool dot = false,
  4. int? max,
  5. Color color = Style.badgeBackgroundColor,
  6. Color textColor = Style.badgeTextColor,
  7. double textSize = Style.badgeTextFontSize,
  8. Widget? child,
  9. Widget? content,
})

Implementation

const Badge(
    {Key? key,
    this.value,
    this.dot: false,
    this.max,
    this.color: Style.badgeBackgroundColor,
    this.textColor: Style.badgeTextColor,
    this.textSize: Style.badgeTextFontSize,
    this.child,
    this.content})
    : super(key: key);