setCSSVariable method
void
setCSSVariable(
- String identifier,
- String value
)
override
Implementation
@override
void setCSSVariable(String identifier, String value) {
CSSVariable? variable = CSSVariable.tryParse(this, value);
if (variable != null) {
_variableStorage ??= HashMap<String, CSSVariable>();
_variableStorage![identifier] = variable;
} else {
_identifierStorage ??= HashMap<String, String>();
_identifierStorage![identifier] = value;
}
if (_propertyDependencies.containsKey(identifier)) {
_notifyCSSVariableChanged(identifier, value);
}
}