Milad-Akarie / auto_route_library

Flutter route generator

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to access meta data from AutoRouterObserver ?

DumbDev168 opened this issue · comments

I just want to set a selected sidebar menu item that matches the metadata when the user type in the url directly.

@OverRide
void didPush(Route route, Route? previousRoute) {

// i want to access the meta here
iLog('New route pushed: ${route.settings.name}');
}