RobotConfig constructor

RobotConfig({
  1. CloudConfig? cloud,
  2. Iterable<RemoteConfig>? remotes,
  3. Iterable<ComponentConfig>? components,
  4. Iterable<ProcessConfig>? processes,
  5. Iterable<ServiceConfig>? services,
  6. NetworkConfig? network,
  7. AuthConfig? auth,
  8. bool? debug,
  9. Iterable<ModuleConfig>? modules,
  10. bool? disablePartialStart,
  11. Iterable<PackageConfig>? packages,
  12. Iterable<AppValidationStatus>? overwriteFragmentStatus,
  13. bool? enableWebProfile,
  14. Iterable<LogPatternConfig>? log,
  15. String? revision,
  16. MaintenanceConfig? maintenance,
})

Implementation

factory RobotConfig({
  CloudConfig? cloud,
  $core.Iterable<RemoteConfig>? remotes,
  $core.Iterable<ComponentConfig>? components,
  $core.Iterable<ProcessConfig>? processes,
  $core.Iterable<ServiceConfig>? services,
  NetworkConfig? network,
  AuthConfig? auth,
  $core.bool? debug,
  $core.Iterable<ModuleConfig>? modules,
  $core.bool? disablePartialStart,
  $core.Iterable<PackageConfig>? packages,
  $core.Iterable<AppValidationStatus>? overwriteFragmentStatus,
  $core.bool? enableWebProfile,
  $core.Iterable<LogPatternConfig>? log,
  $core.String? revision,
  MaintenanceConfig? maintenance,
}) {
  final $result = create();
  if (cloud != null) {
    $result.cloud = cloud;
  }
  if (remotes != null) {
    $result.remotes.addAll(remotes);
  }
  if (components != null) {
    $result.components.addAll(components);
  }
  if (processes != null) {
    $result.processes.addAll(processes);
  }
  if (services != null) {
    $result.services.addAll(services);
  }
  if (network != null) {
    $result.network = network;
  }
  if (auth != null) {
    $result.auth = auth;
  }
  if (debug != null) {
    $result.debug = debug;
  }
  if (modules != null) {
    $result.modules.addAll(modules);
  }
  if (disablePartialStart != null) {
    $result.disablePartialStart = disablePartialStart;
  }
  if (packages != null) {
    $result.packages.addAll(packages);
  }
  if (overwriteFragmentStatus != null) {
    $result.overwriteFragmentStatus.addAll(overwriteFragmentStatus);
  }
  if (enableWebProfile != null) {
    $result.enableWebProfile = enableWebProfile;
  }
  if (log != null) {
    $result.log.addAll(log);
  }
  if (revision != null) {
    $result.revision = revision;
  }
  if (maintenance != null) {
    $result.maintenance = maintenance;
  }
  return $result;
}