computedValue method

dynamic computedValue(
  1. String propertyName
)

Implementation

dynamic computedValue(String propertyName) {
  String? unsolvedValue = _renderStyle.getCSSVariable(identifier, propertyName) ?? defaultValue;
  if (unsolvedValue == null) {
    return null;
  }

  var resolved = _renderStyle.resolveValue(propertyName, unsolvedValue);
  if (resolved is CSSVariable) {
    return resolved.computedValue(propertyName);
  } else {
    return resolved;
  }
}