pos method
Method called as soon as route is found and after settings.
Implementation
@override
FutureOr<Route?> pos(route, data) async {
if (await canActivate(data, route as Route)) {
return route;
}
throw GuardedRouteException(route.uri.toString().trim());
}