useRoute function
Returns the current route (reactive).
final route = useRoute();
effect(() {
print('Path changed to: ${route.path}');
});
Implementation
Route useRoute() => Router.instance.current;
Returns the current route (reactive).
final route = useRoute();
effect(() {
print('Path changed to: ${route.path}');
});
Route useRoute() => Router.instance.current;