getCheckboxCheckedColor static method

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

Implementation

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