maintainState property

bool maintainState
final

By default, when the created route is replaced by another, the previous route remains in memory. To free all the resources when this is not necessary, set maintainState to false.

Implementation

final bool maintainState;