getDocFromCache<T extends K> method
Returns the document from the local map.
If the doctype or docname don't exist, null
is returned.
Implementation
T? getDocFromCache<T extends K>(String? doctype, String docname) {
if (locals.containsKey(doctype)) {
if (locals[doctype]!.containsKey(docname)) {
return locals[doctype]![docname];
}
}
return null;
}