RemoteConfig constructor

RemoteConfig({
  1. String? name,
  2. String? address,
  3. Frame? frame,
  4. RemoteAuth? auth,
  5. String? managedBy,
  6. bool? insecure,
  7. Duration? connectionCheckInterval,
  8. Duration? reconnectInterval,
  9. Iterable<ResourceLevelServiceConfig>? serviceConfigs,
  10. String? secret,
})

Implementation

factory RemoteConfig({
  $core.String? name,
  $core.String? address,
  Frame? frame,
  RemoteAuth? auth,
  $core.String? managedBy,
  $core.bool? insecure,
  $42.Duration? connectionCheckInterval,
  $42.Duration? reconnectInterval,
  $core.Iterable<ResourceLevelServiceConfig>? serviceConfigs,
  $core.String? secret,
}) {
  final $result = create();
  if (name != null) {
    $result.name = name;
  }
  if (address != null) {
    $result.address = address;
  }
  if (frame != null) {
    $result.frame = frame;
  }
  if (auth != null) {
    $result.auth = auth;
  }
  if (managedBy != null) {
    $result.managedBy = managedBy;
  }
  if (insecure != null) {
    $result.insecure = insecure;
  }
  if (connectionCheckInterval != null) {
    $result.connectionCheckInterval = connectionCheckInterval;
  }
  if (reconnectInterval != null) {
    $result.reconnectInterval = reconnectInterval;
  }
  if (serviceConfigs != null) {
    $result.serviceConfigs.addAll(serviceConfigs);
  }
  if (secret != null) {
    $result.secret = secret;
  }
  return $result;
}