routeObserver property

RouteObserver<Route>? routeObserver
final

When you push pages on top, the floating child will vanish and reappear when you return if you give it an RouteObserver linked to the main MaterialApp.

Implementation

final RouteObserver? routeObserver;