CurrentRoute class
Contextual information about a navigation action, passed to guards and loaders to make decisions about the current route.
Constructors
- CurrentRoute.new({required BuildContext context, required RouteDefiner route, required RouteState state})
-
Creates a CurrentRoute with the given
context
,route
, andstate
.
Properties
- context → BuildContext
-
Build context associated with the navigation.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- route → RouteDefiner
-
The matched RouteDefiner for the navigation request.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- state → RouteState
-
The parsed RouteState containing path and parameter information.
final
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