Badge constructor

Badge({
  1. required String label,
  2. String? message,
  3. int? labelWidth,
  4. int? messageWidth,
  5. BadgeTheme? theme,
})

Implementation

Badge({
  required this.label,
  this.message,
  this.labelWidth,
  this.messageWidth,
  BadgeTheme? theme,
}) : theme = theme ?? BadgeTheme.primary;