RouteState class
Represents the current state of a route during navigation, including path, parameters, query strings, fragment, and arguments.
Constructors
-
RouteState.new({required String path, Map<
String, String> ? uriParams, required Map<String, String> queryParams, required String fragment, required dynamic arguments}) - Creates a RouteState object with all the relevant route information.
Properties
- arguments → dynamic
-
Optional arguments passed along with the route.
final
- fragment → String
-
The fragment part of the URL (e.g.
#section2
).final - hashCode → int
-
The hash code for this object.
no setterinherited
- path → String
-
The path portion of the route (e.g. "/user/123").
final
-
queryParams
→ Map<
String, String> -
The query parameters from the URL (e.g.
?sort=asc&filter=active
).final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
uriParams
↔ Map<
String, String> ? -
The URI parameters extracted from the path (e.g.
id
in "/user/:id"). This can be null if there are no parameters.getter/setter pair
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