How do I get documentid of a firestore document in flutter?

More Code: I am getting an error in trying to access the document id. I have tried to use await but its giving an error.

 Widget build(BuildContext context) < return Scaffold( appBar: new AppBar( title: new Text( "National Security Agency", style: TextStyle( color: Colors.black, fontWeight: FontWeight.normal, fontSize: 24.0), ), backgroundColor: Colors.redAccent, centerTitle: true, actions: [ new DropdownButton( items: ['Sign Out'].map((String value) < return new DropdownMenuItem( value: value, child: new Text(value), ); >).toList(), onChanged: (_) => logout(), ) ], ), floatingActionButton: FloatingActionButton( onPressed: () < >, child: Icon(Icons.search), ), body: StreamBuilder ( stream: cloudfirestoredb, builder: (BuildContext context, AsyncSnapshot snapshot) < if (!snapshot.hasData) return new Text('Loading. '); return new ListView( children: snapshot.data.documents.map((document) < var doc_id=document.documentID; var now= new DateTime.now(); var formatter=new DateFormat('MM/dd/yyyy'); String formatdate = formatter.format(now); var date_to_be_added=[formatdate]; DocumentReference doc_ref=Firestore.instance.collection("board").document(doc_id).collection("Dates").document(); var doc_id5= await get_data(doc_ref); print(doc_id); Firestore.instance.collection("board").document(doc_id).collection("Dates").document(doc_id5).updateData(); return cardtemplate(document['Name'], document['Nationality'], doc_id); >).toList(), ); >, ), ); >