Application class abstract base

An object that defines the behavior specific to application.

Create a subclass of Application to initialize application's services and define how HTTP requests are handled by application.

Implement entryPoint to define the handler that comprise application. Override prepare to read configuration values and initialize services.

Constructors

Application()
Creates an instance of Application.

Properties

entryPoint Handler
Implement this accsessor to define how HTTP requests are handled by application.
no setter
hashCode int
The hash code for this object.
no setterinherited
logger → Logger
The logger that this application will write messages to.
no setter
messageHub MessageHub?
Use this object to send data to applications running on other isolates.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
server Server?
The HTTP server that sends requests to this application.
getter/setter pair

Methods

close() Future<void>
Override this method to release any resources created in prepare.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
prepare() Future<void>
Override this method to perform initialization tasks.
reload() Future<void>
toString() String
A string representation of this object.
inherited

Operators

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