deepEquals function

bool deepEquals(
  1. List list1,
  2. List list2
)

Implementation

bool deepEquals(List list1, List list2) {
  if (list1.length != list2.length) {
    return false;
  } else {
    for (var i = 0; i < list1.length; i++) {
      if (!list2.remove(list1[i])) {
        return false;
      }
    }
  }
  return true;
}