HostConfig constructor

HostConfig({
  1. String? hostname,
  2. String? type,
  3. ServerConfig? serverConfig,
  4. ClientConfig? connectTo,
  5. Iterable<ModuleConfig>? modules,
  6. String? logFolder,
  7. LogMessageSeverityLevel? minLogSeverityLevel,
})

Implementation

factory HostConfig({
  $core.String? hostname,
  $core.String? type,
  ServerConfig? serverConfig,
  ClientConfig? connectTo,
  $core.Iterable<ModuleConfig>? modules,
  $core.String? logFolder,
  LogMessageSeverityLevel? minLogSeverityLevel,
}) {
  final $result = create();
  if (hostname != null) {
    $result.hostname = hostname;
  }
  if (type != null) {
    $result.type = type;
  }
  if (serverConfig != null) {
    $result.serverConfig = serverConfig;
  }
  if (connectTo != null) {
    $result.connectTo = connectTo;
  }
  if (modules != null) {
    $result.modules.addAll(modules);
  }
  if (logFolder != null) {
    $result.logFolder = logFolder;
  }
  if (minLogSeverityLevel != null) {
    $result.minLogSeverityLevel = minLogSeverityLevel;
  }
  return $result;
}