DefaultInAppLocalhostServerCreationParams class
Object specifying creation parameters for creating a DefaultInAppLocalhostServer.
When adding additional fields make sure they can be null or have a default value to avoid breaking changes. See PlatformInAppLocalhostServerCreationParams for more information.
- Inheritance
-
- Object
- PlatformInAppLocalhostServerCreationParams
- DefaultInAppLocalhostServerCreationParams
- Annotations
Constructors
- DefaultInAppLocalhostServerCreationParams(PlatformInAppLocalhostServerCreationParams params)
-
Creates a new DefaultInAppLocalhostServerCreationParams instance.
const
- DefaultInAppLocalhostServerCreationParams.fromPlatformInAppLocalhostServerCreationParams(PlatformInAppLocalhostServerCreationParams params)
-
Creates a DefaultInAppLocalhostServerCreationParams instance based on PlatformInAppLocalhostServerCreationParams.
factory
Properties
- directoryIndex → String
-
represents the index file to use. The default value is
index.html
.finalinherited - documentRoot → String
-
Represents the document root path to serve. The default value is
./
.finalinherited - hashCode → int
-
The hash code for this object.
no setterinherited
- port → int
-
Represents the port of the server. The default value is
8080
.finalinherited - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
Specifies whether additional
HttpServer
objects can bind to the same combination ofaddress
,port
andv6Only
. Ifshared
istrue
and moreHttpServer
s from this isolate or other isolates are bound to the port, then the incoming connections will be distributed among all the boundHttpServer
s. Connections can be distributed over multiple isolates this way.finalinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited