Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@yaizudamashii
Last active July 30, 2021 16:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yaizudamashii/b59c77e2cf4db6ab39fe40c6ed973165 to your computer and use it in GitHub Desktop.
Save yaizudamashii/b59c77e2cf4db6ab39fe40c6ed973165 to your computer and use it in GitHub Desktop.
// 5
Stream<List<Room>> roomsStream() {
return _service.collection('rooms').snapshots().map((snapshot) => snapshot.docs.map((doc) => Room.fromMap(doc.data(), doc.id)).toList());
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment