cssRuleListsStructurallyEqual function

bool cssRuleListsStructurallyEqual(
  1. List<CSSRule> left,
  2. List<CSSRule> right
)

Implementation

bool cssRuleListsStructurallyEqual(List<CSSRule> left, List<CSSRule> right) {
  if (identical(left, right)) return true;
  if (left.length != right.length) return false;
  for (int index = 0; index < left.length; index++) {
    if (!cssRulesStructurallyEqual(left[index], right[index])) {
      return false;
    }
  }
  return true;
}