Application<T extends ApplicationChannel> class Null safety

This object starts and stops instances of your ApplicationChannel.

An application object opens HTTP listeners that forward requests to instances of your ApplicationChannel. It is unlikely that you need to use this class directly - the conduit serve command creates an application object on your behalf.

Constructors

Application()

Properties

channel → T
The ApplicationChannel handling requests while under test.
read-only
hashCode int
The hash code for this object.
read-onlyinherited
isolateStartupTimeout Duration
The duration to wait for each isolate during startup before failing.
read / write
isRunning bool
Whether or not this application is running.
read-only
logger Logger
The logger that this application will write messages to.
read / write
options ApplicationOptions
The options used to configure this application.
read / write
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
server ApplicationServer
The ApplicationServer listening for HTTP requests while under test.
read / write
supervisors List<ApplicationIsolateSupervisor>
A list of isolates that this application supervises.
read / write

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
start({int numberOfInstances = 1, bool consoleLogging = false}) Future
Starts this application, allowing it to handle HTTP requests.
startOnCurrentIsolate() Future
Starts the application on the current isolate, and does not spawn additional isolates.
stop() Future
Stops the application from running.
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

document(Type type, ApplicationOptions config, Map<String, dynamic> projectSpec) Future<APIDocument>
Creates an APIDocument from an ApplicationChannel.