ApplicationServer class Null safety

Listens for HTTP requests and delivers them to its ApplicationChannel instance.

An Liquidart application creates instances of this type to pair an HTTP server and an instance of an ApplicationChannel subclass. Instances are created by Application and shouldn't be created otherwise.


ApplicationServer(Type channelType, ApplicationOptions? options, int identifier)
Creates a new server. [...]


channel ApplicationChannel?
The instance of ApplicationChannel serving requests.
read / write
channelType Type
entryPoint Controller?
The cached entrypoint of channel.
read / write
hashCode int
The hash code for this object. [...]
read-only, inherited
hubSink EventSink?
Target for sending messages to other ApplicationChannel.messageHubs. [...]
read / write
identifier int
The unique identifier of this instance. [...]
read / write
logger Logger
The logger of this instance
options ApplicationOptions?
The configuration this instance used to start its channel.
read / write
requiresHTTPS bool
Whether or not this server requires an HTTPS listener.
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
server HttpServer?
The underlying HttpServer.
read / write


close() Future
Closes this HTTP server and channel.
didOpen() Future
Invoked when this server becomes ready receive requests. [...]
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
sendApplicationEvent(dynamic event) → void
start({bool shareHttpServer = false}) Future
Starts this instance, allowing it to receive HTTP requests. [...]
toString() String
A string representation of this object. [...]


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