getRadioButtonLabelColor static method

Color getRadioButtonLabelColor(
  1. BuildContext context, {
  2. UpStyle? override,
  3. UpStyle? style,
  4. 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;
}