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}) =>
platform.setHttpAuthCredential(
protectionSpace: protectionSpace, credential: credential);