routeObserver property
The central RouteObserver for the browser navigation stack.
This observer is used internally by Browser.watch to listen for route
changes (push, pop, etc.).
It must be passed to the navigatorObservers property of your
MaterialApp, CupertinoApp, or WidgetsApp.
See the example in the Browser class documentation.
Implementation
static final RouteObserver<ModalRoute<void>> routeObserver =
RouteObserver<ModalRoute<void>>();