USE_SAVED_HTTP_AUTH_CREDENTIALS property

HttpAuthResponseAction USE_SAVED_HTTP_AUTH_CREDENTIALS
final

Uses the credentials stored for the current host.

Officially Supported Platforms/Implementations:

  • Android WebView
  • iOS WKWebView
  • macOS WKWebView

Implementation

static final USE_SAVED_HTTP_AUTH_CREDENTIALS =
    HttpAuthResponseAction._internalMultiPlatform(2, () {
      switch (defaultTargetPlatform) {
        case TargetPlatform.android:
          return 2;
        case TargetPlatform.iOS:
          return 2;
        case TargetPlatform.macOS:
          return 2;
        default:
          break;
      }
      return null;
    });