HttpAuthenticationChallenge constructor
HttpAuthenticationChallenge({
- String? error,
- URLResponse? failureResponse,
- @Deprecated('Use error instead') String? iosError,
- @Deprecated('Use failureResponse instead') IOSURLResponse? iosFailureResponse,
- required int previousFailureCount,
- URLCredential? proposedCredential,
- required URLProtectionSpace protectionSpace,
Implementation
HttpAuthenticationChallenge(
{this.error,
this.failureResponse,
@Deprecated('Use error instead') this.iosError,
@Deprecated('Use failureResponse instead') this.iosFailureResponse,
required this.previousFailureCount,
this.proposedCredential,
required URLProtectionSpace protectionSpace})
: super(protectionSpace: protectionSpace) {
error = error ?? iosError;
failureResponse =
failureResponse ?? URLResponse.fromMap(iosFailureResponse?.toMap());
}