ImmutableTree<T>.fromMap constructor
A tree with each value of values at its path.
Implementation
factory ImmutableTree.fromMap(Map<Path, T> values) {
ImmutableTree<T> tree = ImmutableTree<T>.empty();
for (final MapEntry<Path, T> entry in values.entries) {
tree = tree.set(entry.key, entry.value);
}
return tree;
}