getExpansionState method

bool getExpansionState(
  1. T node
)

The current expansion state of node.

If this method returns true, the children of node should be visible in tree views.

Implementation

bool getExpansionState(T node) {
  return _expandedNodesCache?.contains(node) ?? false;
}