persist property

bool? persist
final

Whether to maintain the state of the child widget subtree while it is not the current route. Defaults to true if the route is present in the stack router history. If for example, this route should be eagerly built for when it later is made the current route, set persist to true.

Implementation

final bool? persist;