UserSessionData class

Holds Firebase Authentication user data to display. Offers deleteUser and logoutUser. Offers firebaseUser for advanced operations.

Constructors

UserSessionData(String uid, String? email, String? displayName, bool emailVerified, bool isAnonymous, String? phoneNumber, String? photoURL)
Constructor.

Properties

displayName String?
Display name
final
email String?
Email
final
emailVerified bool
Is the email verified?
final
hashCode int
The hash code for this object.
no setterinherited
isAnonymous bool
Is the user anonymous?
final
phoneNumber String?
Phone number
final
photoURL String?
Photo url
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
uid String
User uid
final

Methods

deleteUser() Future<bool>
Deletes the user in Firebase Authentication. Returns true in case of success.
firebaseUser() → User?
Returns the Firebase User for advanced operations. Be careful.
logoutUser() Future<void>
Signs out the user from Firebase Authentication.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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