SeniorBadge constructor
SeniorBadge({
- Key? key,
- required Color backgroundColor,
- required Color fontColor,
- required String label,
- SeniorBadgeShape shape = SeniorBadgeShape.chip,
- bool outlined = false,
- dynamic value,
- dynamic onSelect(
- dynamic
- bool disabled = false,
- Color? disabledBackgroundColor,
- Color? disabledFontColor,
- int? count,
- Color? selectedBackgroundColor,
- Color? selectedFontColor,
- Color counterColor = SeniorColors.grayscale80,
- 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);