structurallyEquals method
Implementation
bool structurallyEquals(CSSStyleDeclaration other) {
if (identical(this, other)) return true;
final List<String> propertyNames = _structuralPropertyNames();
final List<String> otherPropertyNames = other._structuralPropertyNames();
if (propertyNames.length != otherPropertyNames.length) return false;
for (int index = 0; index < propertyNames.length; index++) {
final String propertyName = propertyNames[index];
if (propertyName != otherPropertyNames[index]) return false;
if (_getPropertyValueByNormalizedName(propertyName) !=
other._getPropertyValueByNormalizedName(propertyName)) {
return false;
}
if (_getPropertyBaseHrefByNormalizedName(propertyName) !=
other._getPropertyBaseHrefByNormalizedName(propertyName)) {
return false;
}
if ((_importants[propertyName] == true) !=
(other._importants[propertyName] == true)) {
return false;
}
}
return true;
}