SeniorBadge constructor

SeniorBadge({
  1. Key? key,
  2. required Color backgroundColor,
  3. required Color fontColor,
  4. required String label,
  5. SeniorBadgeShape shape = SeniorBadgeShape.chip,
  6. bool outlined = false,
  7. dynamic value,
  8. dynamic onSelect(
    1. dynamic
    )?,
  9. bool disabled = false,
  10. Color? disabledBackgroundColor,
  11. Color? disabledFontColor,
  12. int? count,
  13. Color? selectedBackgroundColor,
  14. Color? selectedFontColor,
  15. Color counterColor = SeniorColors.grayscale80,
  16. Color couterBackgroundColor = SeniorColors.grayscale30,
})

Creates an Badge component. The backgroundColor, fontColor and label parameters are required.

Implementation

SeniorBadge({
  Key? key,
  required this.backgroundColor,
  required this.fontColor,
  required this.label,
  this.shape = SeniorBadgeShape.chip,
  this.outlined = false,
  this.value,
  this.onSelect,
  this.disabled = false,
  this.disabledBackgroundColor,
  this.disabledFontColor,
  this.count,
  this.selectedBackgroundColor,
  this.selectedFontColor,
  this.counterColor = SeniorColors.grayscale80,
  this.couterBackgroundColor = SeniorColors.grayscale30,
}) : super(key: key);