addChild method
Adds the child
to this element
Implementation
TreeElement<T> addChild(T child) {
children ??= <TreeElement<T>>[];
final element = TreeElement(child, this);
children!.add(element);
return element;
}
Adds the child
to this element
TreeElement<T> addChild(T child) {
children ??= <TreeElement<T>>[];
final element = TreeElement(child, this);
children!.add(element);
return element;
}