HostInfo constructor

HostInfo({
  1. String? platform,
  2. String? distro,
  3. Iterable<String>? tags,
})

Implementation

factory HostInfo({
  $core.String? platform,
  $core.String? distro,
  $core.Iterable<$core.String>? tags,
}) {
  final $result = create();
  if (platform != null) {
    $result.platform = platform;
  }
  if (distro != null) {
    $result.distro = distro;
  }
  if (tags != null) {
    $result.tags.addAll(tags);
  }
  return $result;
}