clientLocalhost top-level property

String get clientLocalhost

Implementation

String get clientLocalhost {
  if (Platform.isMacOS || Platform.isLinux) {
    return '0.0.0.0';
  } else if (Platform.isWindows) {
    return 'localhost';
  } else {
    throw UnsupportedError(
        'The ${Platform.operatingSystem} platform is not supported');
  }
}