routeObserver property
RouteObserver<Route>
get
routeObserver
A NavigatorObserver that uses by the R89SDK to automatically handle lifecycle of created advertisements. When a route is popped all advertisements related to that route are get destroyed.
To use it, add it to the navigatorObservers
of your Navigator, e.g. if
you're using a MaterialApp:
MaterialApp(
home: MyAppHome(),
navigatorObservers: [
R89SDK.routeObserver,
],
);
Implementation
static RouteObserver get routeObserver => R89SdkPlatformInterface.instance().routeObserver;