keepAll method

PruneForest keepAll(
  1. Path path,
  2. Set<ChildKey> children
)

With each of children of path kept.

Implementation

PruneForest keepAll(Path path, Set<ChildKey> children) {
  if (forest.rootMostValueMatching(path, _keepPredicate) != null) {
    // This path will already be kept.
    return this;
  }
  return _doAll(path, children, _keepTree);
}