dart itireate through tree code example
Example: trees in dart
class Node<T> {
final T value;
final List<Node<T>> children;
Node(this.value, this.children);
}
class Node<T> {
final T value;
final List<Node<T>> children;
Node(this.value, this.children);
}