ServerLoadContext<P, S> class final

Typed input for one server route loader.

Constructors

ServerLoadContext({required RequestContext context, required P params, required S search, required Uri location, required RouteBranch branch})
Creates server loader input.
const

Properties

app → AppContext
Explicitly installed request application modules.
no setter
branch → RouteBranch
Complete matched route branch.
final
context → RequestContext
Request-scoped application and HTTP state.
final
hashCode → int
The hash code for this object.
no setterinherited
location → Uri
Complete matched location.
final
params → P
Path parameters owned by the route.
final
request → ServerRequest
Incoming HTTP request.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
Search state owned by the route.
final

Methods

match<ParentP, ParentS, ParentD>(TypedRoute<ParentP, ParentS, ParentD> route) → RouteValues<ParentP, ParentS>?
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