walkTree<R> method

R? walkTree<R>(
  1. R walker(
    1. K node
    ), {
  2. K? root,
})

Walks tree from root and stops when walker returns some R object.

Implementation

R? walkTree<R>(R Function(K node) walker, {K? root}) {
  return _walkTreeImpl(root ?? this.root, walker);
}