getCheckboxLabelColor static method
Color
getCheckboxLabelColor(
- BuildContext context, {
- UpStyle? override,
- UpStyle? style,
- UpColorType? colorType,
Implementation
static Color getCheckboxLabelColor(
BuildContext context, {
UpStyle? override,
UpStyle? style,
UpColorType? colorType,
}) {
return style?.isDisabled == true
? override?.checkboxDisabledLabelColor ??
style?.checkboxDisabledLabelColor ??
getStyleByType(
UpConfig.of(context).theme,
colorType,
).checkboxDisabledLabelColor ??
UpConstants.kDefaultStyleDisabledForegroundColor
: override?.checkboxLabelColor ??
style?.checkboxLabelColor ??
getStyleByType(
UpConfig.of(context).theme,
colorType,
).checkboxLabelColor ??
Theme.of(context).colorScheme.secondary;
}