maps property
The outer map references a unique key for each tree, if there is only one tree the default map key is used. If there is to be more than one tree in memory at a time, ensure each tree has a key in the outer map. The inner maps contain the path of each node in the tree, and a memory reference to that node, so any node can be accessed O(1)
Implementation
static Map<String, Map<String, MAJNode>> maps = {
defaultMapKey: {},
};