getCheckboxLabelColor static method

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

Implementation

static Color getCheckboxLabelColor(
  BuildContext context, {
  UpStyle? override,
  UpStyle? style,
  UpColorType? colorType,
}) {
  return style?.isDisabled == true
      ? override?.checkboxDisabledLabelColor ??
          style?.checkboxDisabledLabelColor ??
          getStyleByType(
            UpConfig.of(context).theme,
            colorType,
          ).checkboxDisabledLabelColor ??
          UpConstants.kDefaultStyleDisabledForegroundColor
      : override?.checkboxLabelColor ??
          style?.checkboxLabelColor ??
          getStyleByType(
            UpConfig.of(context).theme,
            colorType,
          ).checkboxLabelColor ??
          Theme.of(context).colorScheme.secondary;
}