Credential class

A credential that can be used to authenticate a user, with additional user information used to distinguish this credential from other available credentials. Credentials can be constructed using Credential.Builder. This is typically required when a credential is to be saved using SmartAuth.saveCredential for future retrieval after a new account is created, or the user changes their password. More about Credential https://developers.google.com/android/reference/com/google/android/gms/auth/api/credentials/Credential?hl=en

Constructors

Credential({required String id, String? accountType, String? familyName, String? givenName, String? name, String? password, String? profilePictureUri})
Credential.fromJson(Map<String, dynamic> map)
factory

Properties

accountType String?
Returns the type of federated identity account used to sign in the user.
final
familyName String?
final
givenName String?
final
hashCode int
The hash code for this object.
no setterinherited
id String
Returns the credential identifier.
final
name String?
Returns the display name of the credential, if available.
final
password String?
Returns the password used to sign in the user.
final
profilePictureUri String?
Returns the URL to an image of the user, if available.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

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

Operators

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