getCSSVariable method
dynamic
getCSSVariable(
- String identifier,
- 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);
}