resolve method

Color resolve(
  1. RenderStyle renderStyle
)

Implementation

Color resolve(RenderStyle renderStyle) {
  switch (type) {
    case CSSPaintType.color: return getColor();
    case CSSPaintType.none: return _transparentColor;
    case CSSPaintType.currentColor: return renderStyle.color.value;
    // TODO: implements others in the future
    case CSSPaintType.contextFill:
    case CSSPaintType.contextStroke:
      break;
  }
  return _blackColor;
}