Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR DART

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"];
 
PREVIOUS NEXT
Tagged: #document #firestore #flutter #dart
ADD COMMENT
Topic
Name
3+1 =