checkAll<T extends AbsNodeType> function
checkAll for this tree (from current node to bottom)
Implementation
bool checkAll<T extends AbsNodeType>(TreeType<T> tree) {
tree.data.isChosen = true;
// need to use index, if not, it could create another instance of [TreeType]
for (int i = 0; i < tree.children.length; i++) {
checkAll(tree.children[i]);
}
return true;
}