read method
Reads a Firestore document at the specified path.
path
: The path to the document.
Returns a Future containing the document data as a Map,
or null
if the document doesn't exist.
Implementation
@override
Future<Map<String, dynamic>?> read(String path) async {
final snapshot = await datasource.doc(path).get();
return snapshot.data();
}