title: how to use async/await in Listview builder
body: <p>I have a table in my sqflite database containing the call history of the respective users. Now on my Call history page in flutter, I am showing the complete history data, fetched from sqflite up till now its working fine. But now I want to check whether the numbers are in my history list exist in contact. If yes, then I want to show their contact name and avatar in the list. Otherwise I just want to show the number. Here's my code:</p>
  <pre><code>List&lt;Map&lt;String, dynamic&gt;&gt; ok =
  await DatabaseHelper.instance.getAllLogs(argv);
  setState(() {
    queryRows = ok;
  });
  
  var historyRecords = List&lt;HistoryRecord&gt;.from(queryRows.map((row) =&gt; HistoryRecord.fromJson(row)));
  
  FutureBuilder&lt;List&lt;HistoryRecord&gt;&gt;(
              future: _checkContact(historyRecords),
              builder: (context, snapshot) {
                return ListView.builder(
                  itemCount: historyRecords.length,
                  itemBuilder: (context, index) {
                    print(historyRecords[index]);
  
                  },
                );
              },
            )
  
     Future&lt;List&lt;HistoryRecord&gt;&gt; _checkContact(List&lt;HistoryRecord&gt; rec)async
     {
     for(int i=0;i&lt;rec.length;i++) {
     var conhere=await 
     ContactsService.getContactsForPhone(rec[i].callHistoryNumber);
     
     //how should i map iterable contact list to Historyrecord
     }
    }
  </code></pre>