getcheckboxBackgroundColor static method

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

Implementation

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