URLCredential class

Class that represents an authentication credential consisting of information specific to the type of credential and the type of persistent storage to use, if any.


URLCredential({String? username, String? password, IOSURLCredentialPersistence? iosPersistence, List<X509Certificate>? iosCertificates})


hashCode int
The hash code for this object.
no setterinherited
iosCertificates List<X509Certificate>?
The intermediate certificates of the credential, if it is a client certificate credential.
getter/setter pair
iosPersistence IOSURLCredentialPersistence?
The credential’s persistence setting.
getter/setter pair
password String?
The credential’s password.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
username String?
The credential’s user name.
getter/setter pair


noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
toJson() Map<String, dynamic>
toMap() Map<String, dynamic>
toString() String
A string representation of this object.


operator ==(Object other) bool
The equality operator.

Static Methods

fromMap(Map<String, dynamic>? map) URLCredential?