read method

  1. @override
Future<T?> read(
  1. DocumentId docId
)
override

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();
}