UserModel class

Inheritance

Constructors

UserModel({required String uid, String? email, String? displayName, String? photoURL, String? phoneNumber, bool isEmailVerified = false, List<String> providerData = const [], UserMetadata? metadata})
const
UserModel.fromFirebaseUser(User user)
factory
UserModel.fromJson(Map<String, dynamic> json)
factory

Properties

displayName → String?
The user's display name, if available.
finalinherited
email → String?
The user's email address, if available.
finalinherited
hashCode → int
The hash code for this object.
no setterinherited
isEmailVerified → bool
Whether the user's email has been verified.
finalinherited
metadata → UserMetadata?
Metadata about the user's account creation and sign-in times.
finalinherited
phoneNumber → String?
The user's phone number, if available.
finalinherited
photoURL → String?
The user's profile photo URL, if available.
finalinherited
props → List<Object?>
The list of properties that will be used to determine whether two instances are equal.
no setterinherited
providerData → List<String>
List of authentication provider IDs linked to this user.
finalinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
stringify → bool?
If set to true, the toString method will be overridden to output this instance's props.
no setterinherited
uid → String
The unique identifier for this user.
finalinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
toString() → String
A string representation of this object.
inherited

Operators

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