EasyBadge constructor

const EasyBadge(
  1. {Key? key,
  2. int count = 0,
  3. String? text,
  4. Color? color,
  5. bool? dot = false,
  6. int? overflowCount = 99,
  7. bool? showZero = false,
  8. EasyThemeType? type = EasyThemeType.error,
  9. required Widget child}
)

徽标数

Implementation

const EasyBadge({
  Key? key,
  this.count = 0,
  this.text,
  this.color,
  this.dot = false,
  this.overflowCount = 99,
  this.showZero = false,
  this.type = EasyThemeType.error,
  required this.child,
}) : super(key: key);