maxNodesToShowWhenAnimating property

int maxNodesToShowWhenAnimating
final

The amount of nodes that are going to be shown on an animating subtree.

Must be greater than 0.

When animating the expand/collapse state changes, all descendant nodes whose visibility will change are rendered along with the toggled node, i.e. a Column is used, therefore rendering the entire subtree regardless of being a "lazy" rendered view.

This value can be used to limit how many nodes are actually rendered during the animation, since there could be cases where not all widgets are visible due to scroll offsets.

Defaults to 50.

Implementation

final int maxNodesToShowWhenAnimating;