ZuraffaRouteState class

Pure-Dart route state passed to ZuraffaRouteGuard callbacks.

This is the platform-agnostic counterpart to GoRouterState (from go_router), so route guards can be implemented in pure Dart code. The generated router code includes an adapter that constructs ZuraffaRouteState from GoRouterState for middleware evaluation.

Constructors

ZuraffaRouteState({required String location, required String path, required String matchedLocation, required Map<String, String> queryParameters, required Map<String, String> pathParameters, Object? extra})
const

Properties

extra → Object?
Optional extra object forwarded with the navigation.
final
hashCode → int
The hash code for this object.
no setterinherited
location → String
The current route location, e.g. '/products/42?page=2'.
final
matchedLocation → String
The matched URI location, e.g. '/products/42'.
final
path → String
The route template pattern, e.g. '/products/:id'.
final
pathParameters → Map<String, String>
Path parameters matched by the route pattern.
final
queryParameters → Map<String, String>
Query parameters from the URI.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited