Advertisement
MonkeyDrone

Untitled

Feb 5th, 2021
1,289
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Dart 0.30 KB | None | 0 0
  1. Future<UserPosts> fetchUserPostsOnce(String userId) {
  2.     return _db
  3.         .collection('users')
  4.         .doc(userId)
  5.         .collection('posts')
  6.         .get()
  7.         .then(
  8.           (snapshot) => UserPosts.fromFirestore(
  9.             // Part where I think I am stuck.
  10.           ),
  11.         );
  12.   }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement