User class Null safety

A user account.


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


delete() Future<void>
Deletes and signs out the user. [...]
getIdToken([bool forceRefresh = false]) Future<String>
Returns a JSON Web Token (JWT) used to identify the user to a Firebase service. [...]
getIdTokenResult([bool forceRefresh = false]) Future<IdTokenResult>
Returns a IdTokenResult containing the users JSON Web Token (JWT) and other metadata. [...]
linkWithCredential(AuthCredential credential) Future<UserCredential>
Links the user account with the given credentials. [...]
linkWithPhoneNumber(String phoneNumber, [RecaptchaVerifier? verifier]) Future<ConfirmationResult>
Links the user account with the given phone number. [...]
linkWithPopup(AuthProvider provider) Future<UserCredential>
Links the user account with the given provider. [...]
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
reauthenticateWithCredential(AuthCredential credential) Future<UserCredential>
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. [...]
Unlinks a provider from a user account. [...]
updateDisplayName(String? displayName) Future<void>
Update the user name.
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. [...]
updatePhotoURL(String? photoURL) Future<void>
Update the user's profile picture.
updateProfile({String? displayName, String? photoURL}) Future<void>
Updates a user's profile data.
@Deprecated('Will be removed in version 2.0.0. ' 'Use updatePhotoURL and updateDisplayName instead.')
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. [...]


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