read method
Gets a single document from the collection
Does NOT refresh automatically
Implementation
@override
Future<T?> read(DocumentId docId) async {
final snapshot = await ref.doc(docId.docId).get();
return snapshot.data();
}
Gets a single document from the collection
Does NOT refresh automatically
@override
Future<T?> read(DocumentId docId) async {
final snapshot = await ref.doc(docId.docId).get();
return snapshot.data();
}