walkTree<R> method
R?
walkTree<R>(
- R walker(
- K node
- 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);
}