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(
(FlutterUpConfig.of(context)?.theme ?? UpConstants.kDefaultTheme),
colorType,
).checkboxCheckedDisabledColor ??
UpConstants.kDefaultStyleDisabledBackgroundColor
: override?.checkboxCheckedColor ??
style?.checkboxCheckedColor ??
getStyleByType(
(FlutterUpConfig.of(context)?.theme ??
UpConstants.kDefaultTheme),
colorType)
.checkboxCheckedColor ??
Theme.of(context).primaryColor;
}