RouteState<P, S> class
Typed route state that does not depend on a Flutter build context.
- Implementers
Constructors
- RouteState({required AppContext app, required RouteNavigator router, required P params, required S search, required Uri location, required RouteMatches matches})
-
Creates route state.
const
Properties
- app → AppContext
-
The application context containing explicitly installed modules.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- location → Uri
-
The complete active location.
final
- params → P
-
Path parameters owned by this route.
final
- router → RouteNavigator
-
The active Odroe navigation controller.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- search → S
-
Search state owned by this route.
final
Methods
-
bindings<
T extends ModuleBinding> () → Iterable< T> -
Returns module bindings assignable to
T, in registration order. -
match<
ParentP, ParentS, ParentD> (TypedRoute< ParentP, ParentS, ParentD> route) → RouteMatch<ParentP, ParentS, ParentD> ? - Returns a typed active ancestor or current route match.
-
maybe<
T extends Object> (ContextKey< T> key) → T? - Reads an optional application service.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
read<
T extends Object> (ContextKey< T> key) → T - Reads an application service.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited