getcheckboxBackgroundColor static method
Color
getcheckboxBackgroundColor(
- BuildContext context, {
- UpStyle? override,
- UpStyle? style,
- 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;
}