forEachOnPath method

ImmutableTree<T> forEachOnPath(
  1. Path path,
  2. void fn(
    1. Path path,
    2. T value
    )
)

Calls fn on the values along path; returns the subtree at path.

Implementation

ImmutableTree<T> forEachOnPath(
  Path path,
  void Function(Path path, T value) fn,
) => _forEachOnPath(path, Path.empty, fn);