functions/tree_traversal_functions library

Enums

EChosenAllValues
This enum support functions isChosenAll

Functions

findRightmostOfABranch<T extends AbsNodeType>(TreeType<T> tree) TreeType<T>
If we use canvas to draw lines in expandable tree view (look at example), we will wonder, what is the rightmost node in current branch of tree? Because the line in rightmost node has little difference from other.
findRoot<T extends AbsNodeType>(TreeType<T> tree) TreeType<T>
findTreeWithId<T extends AbsNodeType>(TreeType<T> tree, dynamic id) TreeType<T>?
isChosenAll<T extends AbsNodeType>(TreeType<T> tree, {bool isThisLazyTree = false}) EChosenAllValues
Check if the the tree is chosen all
returnChosenLeaves<T extends AbsNodeType>(TreeType<T> tree, List<TreeType<T>> result) → void
returnChosenNodes<T extends AbsNodeType>(TreeType<T> tree, List<TreeType<T>> result) → void
returnFavoriteNodes<T extends AbsNodeType>(TreeType<T> tree, List<TreeType<T>> result) → void
searchAllTreesWithTitleDFS<T extends AbsNodeType>(TreeType<T> tree, String text, List<TreeType<T>> result) → void
Using DFS to return all the trees if each of root's data contains searching text
searchLeavesWithTitleDFS<T extends AbsNodeType>(TreeType<T> tree, String text, List<TreeType<T>> result) → void
Using DFS to return leaves if each of leaf's data contains searching text