User class

User object wrapping the responses from identity toolkit.

Constructors

User.new(Map<String, dynamic> _user, FirebaseAuth _auth)
Return a dart user object from Google's identity toolkit response.

Properties

displayName String?
The users display name.
no setter
email String?
The users email address.
no setter
emailVerified bool
Returns whether the users email address has been verified.
no setter
hashCode int
The hash code for this object.
no setterinherited
isAnonymous bool
Returns whether the user is a anonymous.
no setter
phoneNumber String?
Returns the users phone number.
no setter
photoURL String?
The photo URL of a user, could be null.
no setter
refreshToken String?
Returns a JWT refresh token for the user.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
uid String
The unique id of a user.
no setter

Methods

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.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
reauthenticateWithCredential(AuthCredential credential) → void
Re-authenticates a user using a fresh credential.
reload() Future<void>
Refreshes the current user, if signed in.
sendEmailVerification() Future<void>
Sends a verification email to a user.
toMap() Map<String, dynamic>
A Map representation of this instance.
toString() String
A string representation of this object.
inherited
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.
updatePhotoURL(String? photoURL) Future<void>
Update the user's profile picture.
updateProfile(Map<String, dynamic> newProfile) Future<void>
Update the user's profile.

Operators

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