UNSUPPORTED_SCHEME property
Unsupported URI scheme. Typically this occurs when there is no available protocol handler for the URL.
Officially Supported Platforms/Implementations:
- Android native WebView (Official API - WebViewClient.ERROR_UNSUPPORTED_SCHEME)
- iOS (Official API - URLError.unsupportedURL)
- MacOS (Official API - URLError.unsupportedURL)
Implementation
static final UNSUPPORTED_SCHEME =
WebResourceErrorType._internalMultiPlatform('UNSUPPORTED_SCHEME', () {
switch (defaultTargetPlatform) {
case TargetPlatform.android:
return -10;
case TargetPlatform.iOS:
return -1002;
case TargetPlatform.macOS:
return -1002;
default:
break;
}
return null;
});