HostConfig constructor

HostConfig({
  1. String? hostname,
  2. String? type,
  3. bool? isServer,
  4. String? hostServerAddress,
  5. String? connectTo,
  6. Iterable<ModuleConfig>? modules,
  7. String? logFolder,
  8. LogMessageSeverityLevel? minLogSeverityLevel,
})

Implementation

factory HostConfig({
  $core.String? hostname,
  $core.String? type,
  $core.bool? isServer,
  $core.String? hostServerAddress,
  $core.String? 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 (isServer != null) {
    $result.isServer = isServer;
  }
  if (hostServerAddress != null) {
    $result.hostServerAddress = hostServerAddress;
  }
  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;
}