title: Dart compare unordered Lists with Objects
body: <p>I have following problem. There are two Lists with Articles in it. In the following example the result prints me <em>false</em>. But the Articles are the same. I think thats, because these are different objects, if I add in both lists article1, it will be <em>true</em>. </p>
  
  <p>I also tried DeepCollectionEquality.unordered().equals from this issue: 
  <a href="https://stackoverflow.com/questions/10404516/how-can-i-compare-lists-for-equality-in-dart">How can I compare Lists for equality in Dart?</a></p>
  
  <p>But it is also giving me FALSE back. 
  In my real project, I have two Lists with Articles in it. These lists are not sorted, so one Article can be the first in one list, and an article with the same id and name can be the last one in the other list. But if both lists have the same articles (with the same name and id) it should result with true.</p>
  
  <pre><code>var a = List&lt;Article&gt;();
  var b = List&lt;Article&gt;();
  
  var article1 = Article(id: "1", name: "Beer");
  var article2 = Article(id: "1", name: "Beer");
  
  a.add(article1);
  b.add(article2);
  
  print(listEquals(a, b));
  </code></pre>