DocumentContext<P, S, D> class
final
Typed input passed to a route document builder.
Constructors
-
DocumentContext({required AppContext app, required TypedRoute<
P, S, D> route, required P params, required S search, required D data, required Uri location, required DocumentBranch branch}) -
Creates document builder input.
const
Properties
- app → AppContext
-
The application context containing explicitly installed modules.
final
- branch → DocumentBranch
-
Loader data for the complete active branch.
final
- data → D
-
Loader data owned by the route.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- location → Uri
-
Complete matched location.
final
- metadata → RouteMetadata
-
Metadata declared by the neutral route.
no setter
- params → P
-
Path parameters owned by the route.
final
-
route
→ TypedRoute<
P, S, D> -
The route being rendered.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- search → S
-
Search state owned by the route.
final
Methods
-
bindings<
T extends ModuleBinding> () → Iterable< T> -
Returns module bindings assignable to
T, in registration order. -
match<
MatchP, MatchS, MatchD> (TypedRoute< MatchP, MatchS, MatchD> route) → DocumentValues<P, S, D> ? - Returns typed values for an active route.
-
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