Answers for "get one document firestore flutter dart"

0

flutter firestore get single document

DocumentSnapshot variable = await Firestore.instance.collection('COLLECTION NAME').document('DOCUMENT ID').get();
Posted by: Guest on April-18-2021
0

get one document 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"];
Posted by: Guest on February-04-2022

Code answers related to "get one document firestore flutter dart"

Code answers related to "Dart"

Browse Popular Code Answers by Language