SeniorBadge.icon constructor

SeniorBadge.icon({
  1. required Color backgroundColor,
  2. required Color fontColor,
  3. required String label,
  4. SeniorBadgeShape shape,
  5. bool outlined,
  6. dynamic value,
  7. dynamic onSelect(
    1. dynamic
    )?,
  8. bool disabled,
  9. Color disabledBackgroundColor,
  10. Color disabledFontColor,
  11. int count,
  12. Color selectedBackgroundColor,
  13. Color selectedFontColor,
  14. Color counterColor,
  15. Color couterBackgroundColor,
  16. Color selectedIconColor,
  17. required IconData icon,
  18. Color iconColor,
  19. Color disabledIconColor,
  20. SeniorBadgeIconPosition iconPosition,
})

Creates an Badge with icon component. The backgroundColor, fontColor, label, onSelect parameters are required.

Implementation

factory SeniorBadge.icon({
  required Color backgroundColor,
  required Color fontColor,
  required String label,
  SeniorBadgeShape shape,
  bool outlined,
  dynamic value,
  Function(dynamic)? onSelect,
  bool disabled,
  Color disabledBackgroundColor,
  Color disabledFontColor,
  int count,
  Color selectedBackgroundColor,
  Color selectedFontColor,
  Color counterColor,
  Color couterBackgroundColor,
  Color selectedIconColor,
  required IconData icon,
  Color iconColor,
  Color disabledIconColor,
  SeniorBadgeIconPosition iconPosition,
}) = _SeniorBadgeIcon;