How to get a Map stored in Cloud Firestore with Dart/Flutter ? I tried this but it only works with Array :
Firestore.instance .collection(\'posts\')
Just adding to Doug Stevenson's answer, I had to use the key isGreaterThan: '' in order to not get an empty array.
isGreaterThan: ''
Firestore.instance .collection('posts') .where('userlist.' + userId, isGreaterThan: '') .snapshots(),