FirebaseUser class

Represents a user.

Inheritance

Properties

isAnonymous bool
read-only
isEmailVerified bool
Returns true if the user's email is verified.
read-only
metadata FirebaseUserMetadata
read-only
providerData List<UserInfo>
final
displayName String
The name of the user.
read-only, inherited
email String
The user’s email address.
read-only, inherited
hashCode int
The hash code for this object. [...]
read-only, inherited
phoneNumber String
The user's phone number.
read-only, inherited
photoUrl String
The URL of the user’s profile photo.
read-only, inherited
providerId String
The provider identifier.
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
uid String
The provider’s user ID for the user.
read-only, inherited

Methods

delete() Future<void>
Deletes the user record from your Firebase project's database.
getIdToken({bool refresh: false }) Future<String>
Obtains the id token for the current user, forcing a refresh if desired. [...]
reauthenticateWithCredential(AuthCredential credential) Future<FirebaseUser>
Renews the user’s authentication tokens by validating a fresh set of credentials supplied by the user and returns additional identity provider data. [...]
reload() Future<void>
Manually refreshes the data of the current user (for example, attached providers, display name, and so on).
sendEmailVerification() Future<void>
Initiates email verification for the user.
toString() String
Returns a string representation of this object.
override
unlinkFromProvider(String provider) Future<void>
Detaches the provider account from the current user. [...]
updateEmail(String email) Future<void>
Updates the email address of the user. [...]
updatePassword(String password) Future<void>
Updates the password of the user. [...]
updateProfile(UserUpdateInfo userUpdateInfo) Future<void>
Updates the user profile information. [...]
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited

Operators

operator ==(dynamic other) bool
The equality operator. [...]
inherited