maintainState property Null safety
Whether the route should remain in memory when it is inactive.
If this is true, then the route is maintained, so that any futures it is holding from the next route will properly resolve when the next route pops. If this is not necessary, this can be set to false to allow the framework to entirely discard the route's widget hierarchy when it is not visible.
If this getter would ever start returning a different value, the changedInternalState should be invoked so that the change can take effect.
@override bool get maintainState => _page.maintainState;