keep method
With path kept.
Implementation
PruneForest keep(Path path) {
if (forest.rootMostValueMatching(path, _keepPredicate) != null) {
// This path will already be kept.
return this;
}
return PruneForest.fromTree(forest.setTree(path, _keepTree));
}