resolveColor static method
Implementation
static Color? resolveColor(String color, RenderStyle renderStyle, String propertyName) {
if (color == CURRENT_COLOR) {
if (propertyName == COLOR) {
return null;
}
// Update property that deps current color.
renderStyle.addColorRelativeProperty(propertyName);
return renderStyle.color;
}
return parseColor(color);
}