SeniorBadgeBase constructor

const SeniorBadgeBase({
  1. Key? key,
  2. required bool selected,
  3. required Color backgroundColor,
  4. required Color fontColor,
  5. required String label,
  6. SeniorBadgeShape shape = SeniorBadgeShape.chip,
  7. bool outlined = false,
  8. dynamic value,
  9. dynamic onSelect(
    1. dynamic
    )?,
  10. bool disabled = false,
  11. Color? disabledBackgroundColor,
  12. Color? disabledFontColor,
  13. int? count,
  14. Color? selectedBackgroundColor,
  15. Color? selectedFontColor,
  16. Color? selectedIconColor,
  17. IconData? icon,
  18. Color? iconColor,
  19. Color? disabledIconColor,
  20. SeniorBadgeIconPosition? iconPosition = SeniorBadgeIconPosition.left,
  21. Color counterColor = SeniorColors.grayscale80,
  22. Color couterBackgroundColor = SeniorColors.grayscale30,
})

Implementation

const SeniorBadgeBase({
  Key? key,
  required this.selected,
  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.selectedIconColor,
  this.icon,
  this.iconColor,
  this.disabledIconColor,
  this.iconPosition = SeniorBadgeIconPosition.left,
  this.counterColor = SeniorColors.grayscale80,
  this.couterBackgroundColor = SeniorColors.grayscale30,
}) : super(key: key);