maintainState property

bool maintainState
final

Whether the subtree stays mounted while fully hidden.

True (the default) is cheap — a fully dematerialized glass surface skips its render pass entirely — and keeps any state in child alive. Pass false to remove the subtree once the exit settles.

Implementation

final bool maintainState;