DefaultInAppLocalhostServer constructor

DefaultInAppLocalhostServer(
  1. PlatformInAppLocalhostServerCreationParams params
)

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;
}