color property
Implementation
@override
CSSColor get color {
// Get style from self or closest parent if specified style property is not set
// due to style inheritance.
if (_color == null && parent != null) {
return parent!.color;
}
// The root element has no color, and the color is initial.
return CSSColor(_color ?? CSSColor.initial);
}
set
color
(CSSColor? value)
Implementation
set color(CSSColor? value) {
if (_color == value) return;
_color = value?.value;
// Update all the children text with specified style property not set due to style inheritance.
_markChildrenTextNeedsPaint(renderBoxModel!, COLOR);
}