The list of visible nodes after flattening the tree based on expansion state.
List<FlatNode<T>> flatNodes = [];