getRadioButtonFilledColor static method

Color getRadioButtonFilledColor(
  1. BuildContext context, {
  2. UpStyle? override,
  3. UpStyle? style,
  4. UpColorType? colorType,
})

Implementation

static Color getRadioButtonFilledColor(
  BuildContext context, {
  UpStyle? override,
  UpStyle? style,
  UpColorType? colorType,
}) {
  return style?.isDisabled == true
      ? override?.radioButtonDisabledFilledColor ??
          style?.radioButtonDisabledFilledColor ??
          getStyleByType(
            UpConfig.of(context).theme,
            colorType,
          ).radioButtonDisabledFilledColor ??
          UpConstants.kDefaultStyleDisabledBackgroundColor
      : override?.radioButtonFilledColor ??
          style?.radioButtonFilledColor ??
          getStyleByType(UpConfig.of(context).theme, colorType)
              .radioButtonFilledColor ??
          Theme.of(context).primaryColor;
}