Badge constructor

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

Implementation

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