findOnPath<V> method

V? findOnPath<V>(
  1. Path path,
  2. V? fn(
    1. Path path,
    2. T value
    )
)

Calls fn on the values along path from the root until it returns non-null.

Implementation

V? findOnPath<V>(Path path, V? Function(Path path, T value) fn) =>
    _findOnPath(path, Path.empty, fn);