in lib/src/tree_table.dart [54:71]
void clear() {
Set<String> openedPaths = new Set<String>();
Queue<LogicalRow> possiblyOpen = new Queue();
possiblyOpen.addAll(_rootNodes);
while (possiblyOpen.isNotEmpty) {
LogicalRow next = possiblyOpen.removeFirst();
if (next.open) {
openedPaths.add(next.id);
possiblyOpen.addAll(next.children);
}
}
this._previouslyOpened = openedPaths;
_rootNodes.clear();
this.children.clear();
this.$['inner_table_head'].children.clear();
}