each abstract method

  1. @override
void each(
  1. void function(
    1. HierarchyNode<T>,
    2. int,
    3. HierarchyNode<T>, [
    4. Object?,
    ]), [
  2. Object? that
])

Invokes the specified function for node and each descendant in breadth-first order, such that a given node is only visited if all nodes of lesser depth have already been visited, as well as all preceding nodes of the same depth.

The specified function is passed the current descendant, the zero-based traversal index, and this node. If that is specified, it is the this context of the callback.

Implementation

@override
each(function, [that]);