Context class Null safety

Contains all the environment variables of the application

Constructors

Context()
Factory constructor
factory

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

findAttachedEndpoint<T>(Middleware<T> middleware) Endpoint
Given a Middleware instance, finds the attached Endpoint
findAttachedRequestMiddlewareOfType<T extends Middleware<Request>>(Endpoint endpoint) → T
Given a Endpoint instance, finds the attached request Middleware of subtype T
findAttachedRequestMiddlewares(Endpoint endpoint) Iterable<Middleware<Request>>
Given a Endpoint instance, finds all the attached request middlewares
findAttachedResponseMiddlewareOfType<T extends Middleware<Response>>(Endpoint endpoint) → T
Given a Endpoint instance, finds the attached response Middleware of subtype T
findAttachedResponseMiddlewares(Endpoint endpoint) Iterable<Middleware<Response>>
Given a Endpoint instance, finds all the attached response middlewares
findObjectOfType<T>() → T
Used to find an object of type T [...]
findObjectsOfType<T>() Iterable<T>
Used to find all objects of type T
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
register<T>(T element) → void
Used to register an element in the context
toString() String
A string representation of this object. [...]
inherited

Operators

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