routeObserver property Null safety
final
Firework widgets need to be aware of route changes. In order to implement that, please help to pass this property to navigatorObservers of your MaterialApp(or other app widgets, such as CupertinoApp).
Implementation
final RouteObserver<dynamic> routeObserver = RouteObserver();