setHttpAuthCredential method

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

Saves an HTTP auth credential for that protectionSpace.

Officially Supported Platforms/Implementations:

Implementation

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