ServerConfig class

Configuration for a server.

Constructors

ServerConfig({required int port, required String publicScheme, required String publicHost, required int publicPort})
Creates a new ServerConfig.

Properties

hashCode → int
The hash code for this object.
no setterinherited
port → int
The port the server will be running on.
final
publicHost → String
Public facing host name.
final
publicPort → int
Public facing port.
final
publicScheme → String
Public facing scheme, i.e. http or https.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
override
withResolvedPort(int resolvedPort) → ServerConfig
A copy of this configuration with resolvedPort as the bind port.

Operators

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