routeObserver property

RouteObserver<PageRoute>? routeObserver
final

Pass a RouteObserver so that the widget will listen for route transition and will hide tooltip when the widget's route is not active

Implementation

final RouteObserver<PageRoute>? routeObserver;