removeHttpAuthCredential method

Future<void> removeHttpAuthCredential({
  1. required URLProtectionSpace protectionSpace,
  2. required URLCredential credential,
})

Removes an HTTP auth credential for that protectionSpace.

Officially Supported Platforms/Implementations:

Parameters - Officially Supported Platforms/Implementations:

  • protectionSpace: all platforms
  • credential: all platforms

Use the PlatformHttpAuthCredentialDatabase.isMethodSupported method to check if this method is supported at runtime.

Implementation

Future<void> removeHttpAuthCredential({
  required URLProtectionSpace protectionSpace,
  required URLCredential credential,
}) => platform.removeHttpAuthCredential(
  protectionSpace: protectionSpace,
  credential: credential,
);