TIMEOUT property
final
Connection timed out.
Officially Supported Platforms/Implementations:
- Android WebView (Official API - WebViewClient.ERROR_TIMEOUT)
- iOS WKWebView (Official API - URLError.timedOut)
- macOS WKWebView (Official API - URLError.timedOut)
- Windows WebView2 (Official API - COREWEBVIEW2_WEB_ERROR_STATUS_TIMEOUT)
Implementation
static final TIMEOUT = WebResourceErrorType._internalMultiPlatform(
'TIMEOUT',
() {
switch (defaultTargetPlatform) {
case TargetPlatform.android:
return -8;
case TargetPlatform.iOS:
return -1001;
case TargetPlatform.macOS:
return -1001;
case TargetPlatform.windows:
return 7;
default:
break;
}
return null;
},
);