AuthClient class Null safety

Constructors

AuthClient({required String scheme, required AuthFunction authFunction, Identity? identity, String path = "", SignIdentity? key, DelegationChain? chain, Uri? authUri})
AuthClient.fromMap(String scheme, AuthFunction authFunction, Map<String, dynamic> map, Uri? authUri)
factory

Properties

authFunction AuthFunction
read / write
authUri Uri?
read / write
chain DelegationChain?
read / write
hashCode int
The hash code for this object.
read-onlyinherited
identity Identity?
read / write
key SignIdentity?
read / write
path String
read / write
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
scheme String
read / write

Methods

getIdentity() Identity?
handleFailure(String? errorMessage, void onError(String? error)?) → void
handleSuccess(AuthResponseSuccess message, void onSuccess()?) → void
isAuthenticated() Future<bool>
login([AuthClientLoginOptions? options]) Future<void>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toStorage() String
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

fromStorage(String str) FromStorageResult