PortService constructor

PortService({
  1. String? ip,
  2. int? port,
  3. bool? isLocal,
  4. Map<String, String>? info,
})

Implementation

factory PortService({
  $core.String? ip,
  $core.int? port,
  $core.bool? isLocal,
  $core.Map<$core.String, $core.String>? info,
}) {
  final $result = create();
  if (ip != null) {
    $result.ip = ip;
  }
  if (port != null) {
    $result.port = port;
  }
  if (isLocal != null) {
    $result.isLocal = isLocal;
  }
  if (info != null) {
    $result.info.addAll(info);
  }
  return $result;
}