ZenRouteObserver constructor

ZenRouteObserver({
  1. void onRouteChanged(
    1. Route? route,
    2. Route? previousRoute
    )?,
})

Creates a ZenRouteObserver

onRouteChanged - Optional callback that will be called whenever a route changes, providing access to both the current and previous routes.

Implementation

ZenRouteObserver({this.onRouteChanged});