HOST_LOOKUP property
Server or proxy hostname lookup failed.
Officially Supported Platforms/Implementations:
- Android native WebView (Official API - WebViewClient.ERROR_HOST_LOOKUP)
- iOS (Official API - URLError.cannotFindHost)
- MacOS (Official API - URLError.cannotFindHost)
Implementation
static final HOST_LOOKUP =
WebResourceErrorType._internalMultiPlatform('HOST_LOOKUP', () {
switch (defaultTargetPlatform) {
case TargetPlatform.android:
return -2;
case TargetPlatform.iOS:
return -1003;
case TargetPlatform.macOS:
return -1003;
default:
break;
}
return null;
});