computedValue method

dynamic computedValue(
  1. String propertyName
)

Implementation

dynamic computedValue(String propertyName) {
  dynamic value = _renderStyle.getCSSVariable(identifier, propertyName);
  if (value == null || value == INITIAL) {
    value = defaultValue;
  }

  if (value == null) {
    return null;
  }

  if (value is CSSVariable) {
    return value.computedValue(propertyName);
  } else if (propertyName.isNotEmpty) {
    return _renderStyle.resolveValue(propertyName, value);
  } else {
    return value;
  }
}