unrouter library

Classes

GuardContext
GuardExecutor
GuardRedirect
GuardResult
Inlet
A route configuration that defines a path pattern and widget factory.
A widget that navigates to a specified route when tapped.
MatchedRoute
A matched Inlet with extracted path parameters.
Browser-style navigation operations exposed by unrouter.
Outlet
A widget that renders the next matched child from declarative routes.
RouteBlocker
RouteBlockerContext
RouteLocation
A RouteInformation with an optional matched route name.
RouteMeta
Metadata for file-based routing pages.
Routes
A widget that matches and renders routes based on the current location.
RouteState
Route state that flows through the widget tree.
Unrouter
A declarative router configuration for Flutter.
UnrouterDelegate
A RouterDelegate that matches URLs and builds the routed widget tree.

Enums

UrlStrategy
How URLs should be represented on the web.

Typedefs

Guard = FutureOr<GuardResult> Function(GuardContext context)
LinkBuilder = Widget Function(BuildContext context, RouteInformation location, Future<Navigation> navigate({bool? replace, Object? state}))
Signature for the builder callback used by Link(builder: ...).
RouteBlockedCallback = FutureOr<void> Function(RouteBlockerContext context)
RouteBlockerCallback = FutureOr<bool> Function(RouteBlockerContext context)