Within my firestore db I have the directory users which has user data as documents. The document is having two fields, String 'displayName' and Array 'friends'. I am struggling to retrieve the friends array and get it into a list in flutter within a stream. Any help is appreciated.
My code as it currently stands is as follows:
Stream<List<Memo>> get memos {
var userdocs = Firestore.instance.collection('users').document(userid).document('friends');
// Complete request and do list conversions
// Do more work using results
}
I recognize that this question has been asked before but I am very new to flutter and asynchronous programming do not completely understand the answers