color property

  1. @override
Color color
override

Implementation

@override
Color 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 _color ?? CSSColor.initial;
}
void color=(Color? value)

Implementation

set color(Color? value) {
  if (_color == value) return;
  _color = value;
  // Update all the children text with specified style property not set due to style inheritance.
  _markChildrenTextNeedsPaint(renderBoxModel!, COLOR);
}