INVALID property
final
Indicates an invalid setting or result. A generic error occurred.
Officially Supported Platforms/Implementations:
- Android WebView (Official API - SslError.SSL_INVALID)
- iOS WKWebView (Official API - SecTrustResultType.invalid)
- macOS WKWebView (Official API - SecTrustResultType.invalid)
- Windows WebView2 (Official API - COREWEBVIEW2_WEB_ERROR_STATUS_CERTIFICATE_IS_INVALID)
Implementation
static final INVALID = SslErrorType._internalMultiPlatform('INVALID', () {
switch (defaultTargetPlatform) {
case TargetPlatform.android:
return 5;
case TargetPlatform.iOS:
return 0;
case TargetPlatform.macOS:
return 0;
case TargetPlatform.windows:
return 5;
default:
break;
}
return null;
});