countSubTree method

int countSubTree (
  1. T node
)

Count how many items are required to show this node and its children in a list view, taking into account when a node is collapsed or not.

Implementation

int countSubTree(T node) {
  var n = 1;
  if (isNodeExpanded(node)) n += _countSubNodesOf(node);
  return n;
}