router/middleware library
Classes
- RouterMiddleware
- Static registry for route guards and middleware processors.
Typedefs
-
Middleware
= Future<
void> Function(BuildContext context, String route) - Signature for middleware that processes a route before the page loads.
-
RouteGuard
= Future<
bool> Function(BuildContext context, String route) - Signature for a route guard that determines whether navigation is allowed.