ResolvedRoute class

The result of resolving a navigation target to a route.

Contains all the information needed to identify, render, and track the resolved destination. Parameters from the path, query string, and caller are merged into a single params map.

Constructors

ResolvedRoute({required String target, required String path, required String fragment, String? name, String? groupName, int? viewIndex, bool history = true, Map<String, String> params = const {}})
const

Properties

fragment String
The fragment to inflate when this route is active.
final
groupName String?
The name of the group this route belongs to, or null for standalone routes.
final
hashCode int
The hash code for this object.
no setterinherited
history bool
Whether this route pushes to browser history when navigated to. Inherited from the route group when not set explicitly.
final
name String?
Optional name for programmatic reference.
final
params Map<String, String>
Merged parameters from path segments, query string, and caller-provided values.
final
path String
The URL path for this route (e.g. "/analytics/overview").
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
target String
effective navigation target
final
targetPath String
no setter
viewIndex int?
The index of this route within its group. Null for standalone routes.
final

Methods

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

Operators

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