DefaultInAppLocalhostServer constructor
DefaultInAppLocalhostServer()
Creates a new DefaultInAppLocalhostServer.
Implementation
DefaultInAppLocalhostServer(PlatformInAppLocalhostServerCreationParams params)
: super.implementation(
params is DefaultInAppLocalhostServerCreationParams
? params
: DefaultInAppLocalhostServerCreationParams
.fromPlatformInAppLocalhostServerCreationParams(params),
) {
this._port = params.port;
this._directoryIndex = params.directoryIndex;
this._documentRoot = (params.documentRoot.endsWith('/'))
? params.documentRoot
: '${params.documentRoot}/';
this._shared = params.shared;
}