If I have a Firebase Firestore database which I have retrieved a DocumentSnapshot for the document corresponding to the collection on the right and stored in a
DocumentSnapshot
Here is another simple way to get document value(in your case):
Firestore.instance .collection('users').document('xsajAansjdna') .get() .then((value) => print("Fetched ==>>>"+value.data["username"]));