maintainHistory property

bool maintainHistory
final

Whether or not this widget should save and restore it's value history to page storage.

If this is true, the page history of an inner nested navigator will be retained if the user navigates away from it and then back to it.

This should typically be false for all browser style navigators and true for nested app style navigators.

If maintainHistory is true, key should be set to a PageStorageKey to ensure that different nested implicit navigators don't overwrite each other's page storage.

Also see maintainState, which keeps pages in memory so that they aren't rebuilt when a page above is popped.

Implementation

final bool maintainHistory;