setCSSVariable method

  1. @override
void setCSSVariable(
  1. String identifier,
  2. 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);
  }
}