setHttpAuthCredential method
Future<void>
setHttpAuthCredential({
- required URLProtectionSpace protectionSpace,
- required URLCredential credential,
Saves an HTTP auth credential
for that protectionSpace
.
Officially Supported Platforms/Implementations:
- Android native WebView
- iOS (Official API - URLCredentialStorage.set)
- MacOS (Official API - URLCredentialStorage.set)
Implementation
Future<void> setHttpAuthCredential(
{required URLProtectionSpace protectionSpace,
required URLCredential credential}) {
throw UnimplementedError(
'setHttpAuthCredential is not implemented on the current platform');
}