maintainState property

bool maintainState
final

If false, the route will not maintain the state of this route's page component. By default, once a route becomes active, the component built by the build routine is maintained by the route after the route is popped off the stack. Setting maintainState to false will drop the page component when the route is popped off the stack.

Implementation

final bool maintainState;