calculateMaxLevel method
Calculates the maximum depth (level) of the tree structure.
Implementation
void calculateMaxLevel(List<TreeRowNode> treeRowNodes, {int level = 0}) {
for (var treeRowNode in treeRowNodes) {
maxLevel = max(maxLevel, level);
calculateMaxLevel(treeRowNode.rows, level: level + 1);
}
}