CurrentKnownHostsRes constructor

CurrentKnownHostsRes({
  1. Iterable<KnownHost>? hotHosts,
  2. Iterable<KnownHost>? warmHosts,
  3. Iterable<KnownHost>? coldHosts,
})

Implementation

factory CurrentKnownHostsRes({
  $core.Iterable<KnownHost>? hotHosts,
  $core.Iterable<KnownHost>? warmHosts,
  $core.Iterable<KnownHost>? coldHosts,
}) {
  final _result = create();
  if (hotHosts != null) {
    _result.hotHosts.addAll(hotHosts);
  }
  if (warmHosts != null) {
    _result.warmHosts.addAll(warmHosts);
  }
  if (coldHosts != null) {
    _result.coldHosts.addAll(coldHosts);
  }
  return _result;
}