BAD_URL property
A malformed URL prevented a URL request from being initiated.
Officially Supported Platforms/Implementations:
- Android native WebView (Official API - WebViewClient.ERROR_BAD_URL)
- iOS (Official API - URLError.badURL)
- MacOS (Official API - URLError.badURL)
Implementation
static final BAD_URL =
WebResourceErrorType._internalMultiPlatform('BAD_URL', () {
switch (defaultTargetPlatform) {
case TargetPlatform.android:
return -12;
case TargetPlatform.iOS:
return -1000;
case TargetPlatform.macOS:
return -1000;
default:
break;
}
return null;
});