Callback for when routes change
final void Function(Route? route, Route? previousRoute)? onRouteChanged;