maintainState property
final
Whether the state of the body is maintained when the widget expands or collapses.
If true, the body is kept in the tree while the widget is collapsed. Otherwise, the body is removed from the tree when the widget is collapsed and recreated upon expansion.
Defaults to false.
Implementation
final bool maintainState;