areAllCollapsed method

bool areAllCollapsed()

Returns true if all nodes are collapsed, otherwise returns false.

Implementation

bool areAllCollapsed() {
  for (final node in _displayNodes) {
    if (node.childrenCount > 0 && !node._isCollapsed) {
      return false;
    }
  }

  return true;
}