unrouter library
Classes
- GuardContext
- GuardExecutor
- GuardRedirect
- GuardResult
- Inlet
- A route configuration that defines a path pattern and widget factory.
- Link
- 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.
Extensions
- RouteInformationName on RouteInformation
-
Adds a
namegetter to RouteInformation. - UnrouterBuildContext on BuildContext
Typedefs
-
Guard
= FutureOr<
GuardResult> Function(GuardContext context) - LinkBuilder = Widget Function(BuildContext context, RouteInformation location, )
-
Signature for the builder callback used by
Link(builder: ...). -
RouteBlockedCallback
= FutureOr<
void> Function(RouteBlockerContext context) -
RouteBlockerCallback
= FutureOr<
bool> Function(RouteBlockerContext context)