URLCredential constructor

URLCredential({
  1. List<X509Certificate>? certificates,
  2. @Deprecated('Use certificates instead') List<X509Certificate>? iosCertificates,
  3. @Deprecated('Use persistence instead') IOSURLCredentialPersistence? iosPersistence,
  4. String? password,
  5. URLCredentialPersistence? persistence,
  6. 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(),
      );
}