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