title: How to get unique data from list of object in "dart"
body: <p>When I save user location on local Database, I am successful in saving, however, when I retrieve the data, there are multiple data for each day. I want to eliminate redundancy by adding unique data in List and I am unable to do it.. please refer the cose snippet below, any leads is appreciated!</p>
  <pre><code>if (data != null) {
    for (int i = 0; i &lt; data.length; i++) {
      if (!day.contains*(data[i].date)) {*
        day.add*(data[i]);
      }
    }
    daycount = data.length;
    print('count ${daycount}')*;
  }
  </code></pre>
  <p>data model used</p>
  <pre><code>class Note {
    int _id;
    String _longitude;
    String _latitude;
    String _date;
  </code></pre>