Skip to content

Instantly share code, notes, and snippets.

@harsh-2024
Created January 21, 2022 17:49
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 harsh-2024/14fa8f3f2f4b6efe175f6dd4ee135d1c to your computer and use it in GitHub Desktop.
Save harsh-2024/14fa8f3f2f4b6efe175f6dd4ee135d1c to your computer and use it in GitHub Desktop.
void messagesStream() async {
await for (var snapshot
in _fireStore.collection('myMessages').snapshots()) {
for (var message in snapshot.docs) {
print(message.data());
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment