URLCredential constructor
URLCredential({
- List<
X509Certificate> ? certificates, - @Deprecated('Use certificates instead') List<
X509Certificate> ? iosCertificates, - @Deprecated('Use persistence instead') IOSURLCredentialPersistence? iosPersistence,
- String? password,
- URLCredentialPersistence? persistence,
- String? username,
Implementation
URLCredential(
{this.certificates,
@Deprecated('Use certificates instead') this.iosCertificates,
@Deprecated('Use persistence instead') this.iosPersistence,
this.password,
this.persistence,
this.username}) {
certificates = certificates ?? iosCertificates;
persistence = persistence ??
URLCredentialPersistence.fromNativeValue(
iosPersistence?.toNativeValue());
}