Calls fn on the values along path from the root until it returns non-null.
fn
path
V? findOnPath<V>(Path path, V? Function(Path path, T value) fn) => _findOnPath(path, Path.empty, fn);