Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Future<UserPosts> fetchUserPostsOnce(String userId) {
- return _db
- .collection('users')
- .doc(userId)
- .collection('posts')
- .get()
- .then(
- (snapshot) => UserPosts.fromFirestore(
- // Part where I think I am stuck.
- ),
- );
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement