getCSSVariable method

  1. @override
dynamic getCSSVariable(
  1. String identifier,
  2. String propertyName
)
override

Implementation

@override
dynamic getCSSVariable(String identifier, String propertyName) {
  CSSVariable? variable = _getRawVariable(identifier);
  _addDependency(identifier, propertyName);
  if (variable != null) {
    identifier = variable.identifier.trim();
  }
  if (_identifierStorage != null && _identifierStorage![identifier] != null) {
    return _identifierStorage![identifier];
  }
  if (variable?.defaultValue != null) {
    return variable!.defaultValue;
  }
  // Inherits from renderStyle tree.
  return parent?.getCSSVariable(identifier, propertyName);
}