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(
            (FlutterUpConfig.of(context)?.theme ?? UpConstants.kDefaultTheme),
            colorType,
          ).radioButtonDisabledFilledColor ??
          UpConstants.kDefaultStyleDisabledBackgroundColor
      : override?.radioButtonFilledColor ??
          style?.radioButtonFilledColor ??
          getStyleByType(
                  (FlutterUpConfig.of(context)?.theme ??
                      UpConstants.kDefaultTheme),
                  colorType)
              .radioButtonFilledColor ??
          Theme.of(context).primaryColor;
}