check abstract method
- CurrentRoute currentRoute
Performs any logic required before allowing navigation.
Implementations may trigger navigation actions (e.g., redirects) by using the provided CurrentRoute.
Implementation
Future<void> check(CurrentRoute currentRoute);