Application class Null safety
The starting point of a SparkREST application
Constructors
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
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed. [...]
inherited
-
onHandle(
Request request) → Future< Response> - Called every time an handling is needed. [...]
-
onInit(
Context context) → Future< void> -
Called to init a component only one time. [...]
inherited
-
onInitServer(
) → Future< void> - Registers everything. Do not call and/or override this method. Use onInit instead
-
registerEndpoint(
String uri, Method method, Endpoint endpoint) → void - Used to register and endpoint
-
registerEnviromentalVariable(
Object variable) → void - Used to register an enviromental variable
-
registerPlugin(
Plugin plugin) → void - Used to register a Plugin
-
registerSingleMiddleware<
T> (String? uri, Method? method, MiddlewareAttachType attachType, Middleware< T> middleware) → void - Used to register a Middleware in a single location
-
registerWidespreadMiddleware<
T> (MiddlewareAttachType attachType, Middleware< T> middleware) → void - Used to register a Middleware in multiple location based on Middleware.attachTo
-
toString(
) → String -
A string representation of this object. [...]
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator. [...]
inherited