defaultExpansionState property

bool defaultExpansionState
final

Determines the initial expansion state of tree nodes.

This value is used to define whether a node should be expanded or collapsed by default.

When set to true, all nodes are expanded by default, revealing their subtrees in tree views. When set to false, all nodes are collapsed by default, hiding their subtrees in tree views.

Defaults to false.

Implementation

final bool defaultExpansionState;