Firebase Cloud Firestore
cloud_firestore
+object
This Dart library extends the functionality of the cloud_firestore
and object
packages, providing additional features for observing collections and documents, as well as implementing pagination functions for collections.
It simplifies the serialization of objects for cloud_firestore
in a Flutter app. It streamlines the process of converting Dart objects into formats compatible with cloud_firestore
, making data storage and retrieval smoother and more efficient for developers.
The
firebase_cloud_firestore
version should be aligned withcloud_firestore
version.
final chatDocument = FirebaseFirestore.instance
.collection('chats')
.doc('chat_id')
.asDocument();
Chat? chat = await chatDocument.get();