UserPlatform class Null safety

A user account.

Inheritance

Constructors

UserPlatform(FirebaseAuthPlatform auth, Map<String, dynamic> user)

Properties

auth FirebaseAuthPlatform
The FirebaseAuthPlatform instance.
final
displayName String?
The users display name.
read-only
email String?
The users email address.
read-only
emailVerified bool
Returns whether the users email address has been verified.
read-only
hashCode int
The hash code for this object.
read-only, inherited
isAnonymous bool
Returns whether the user is a anonymous.
read-only
metadata UserMetadata
Returns additional metadata about the user, such as their creation time.
read-only
phoneNumber String?
Returns the users phone number.
read-only
photoURL String?
Returns a photo URL for the user.
read-only
providerData List<UserInfo>
Returns a list of user information for each linked provider.
read-only
refreshToken String?
Returns a JWT refresh token for the user.
read-only
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
tenantId String?
The current user's tenant ID.
read-only
uid String
The user's unique ID.
read-only

Methods

delete() Future<void>
Deletes and signs out the user.
getIdToken(bool forceRefresh) Future<String>
Returns a JSON Web Token (JWT) used to identify the user to a Firebase service.
getIdTokenResult(bool forceRefresh) Future<IdTokenResult>
Returns a IdTokenResult containing the users JSON Web Token (JWT) and other metadata.
linkWithCredential(AuthCredential credential) Future<UserCredentialPlatform>
Links the user account with the given credentials.
linkWithPhoneNumber(String phoneNumber, RecaptchaVerifierFactoryPlatform applicationVerifier) Future<ConfirmationResultPlatform>
Links the user account with the given phone number.
linkWithPopup(AuthProvider provider) Future<UserCredentialPlatform>
Links the user account with the given provider.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
reauthenticateWithCredential(AuthCredential credential) Future<UserCredentialPlatform>
Re-authenticates a user using a fresh credential.
reload() Future<void>
Refreshes the current user, if signed in.
sendEmailVerification(ActionCodeSettings? actionCodeSettings) Future<void>
Sends a verification email to a user.
toString() String
A string representation of this object.
inherited
Unlinks a provider from a user account.
updateEmail(String newEmail) Future<void>
Updates the user's email address.
updatePassword(String newPassword) Future<void>
Updates the user's password.
updatePhoneNumber(PhoneAuthCredential phoneCredential) Future<void>
Updates the user's phone number.
updateProfile(Map<String, String?> profile) Future<void>
Updates a user's profile data.
verifyBeforeUpdateEmail(String newEmail, [ActionCodeSettings? actionCodeSettings]) Future<void>
Sends a verification email to a new email address. The user's email will be updated to the new one after being verified.

Operators

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

Static Methods

verifyExtends(UserPlatform instance) → void
Ensures that any delegate class has extended a UserPlatform.