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