Obtenha um documento Firestore Flutter Dart
var data;
await usersCollection!
.doc(user.uid)
.get()
.then((doc) => {data = doc.data()})
.catchError((error) =>
{print("Error on get data from User"), print(error.toString())});
String firstname = data["firstname"];
mikelikestocode