getDocFromCache<T extends K> method

T? getDocFromCache<T extends K>(
  1. String? doctype,
  2. String docname
)

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