activeConnectionInfo method

HostConnectionInfo activeConnectionInfo()

Implementation

HostConnectionInfo activeConnectionInfo() {
  checkInit();
  final HostConnectionInfo? selected = allConnectionInfo[activeConnectionType];
  if (selected != null && selected.hostIp.isNotEmpty) return selected;
  if (selected != null) throw HostConfigException("connection '$activeConnectionType' has no host address");
  activeConnectionType = allConnectionInfo.keys.first;
  return allConnectionInfo[activeConnectionType]!;
}