forEach method

void forEach(
  1. void fn(
    1. Path path,
    2. T value
    )
)

Calls fn on every value, depth first.

Implementation

void forEach(void Function(Path path, T value) fn) =>
    _forEach(Path.empty, fn);