getAllDocuments method
Implementation
Iterable<DocRefMemory> getAllDocuments() {
String collId = _id;
// check if coll exists or not
if (_memoryDb[collId] == null) {
return [];
}
// gets actual docs
var docs = _memoryDb[collId]!.map((e) {
var docRef = DocRefMemory(e[DBRKeys.id], _collRefMemory, _memoryDb);
return docRef;
});
return docs;
}