UserData class

A user data object as defined by the firebase REST-API endpoints.

Check https://firebase.google.com/docs/reference/rest/auth#section-get-account-info for more details about the underlying REST request.

Annotations
  • @freezed

Constructors

UserData({required String localId, String? email, @Default(false) bool emailVerified, String? displayName, @Default(<ProviderUserInfo>[]) List<ProviderUserInfo> providerUserInfo, Uri? photoUrl, String? passwordHash, int? passwordUpdatedAt, String? validSince, @Default(false) bool disabled, String? lastLoginAt, String? createdAt, @Default(false) bool customAuth})
Default constructor
const
factory
UserData.fromJson(Map<String, dynamic> json)
JSON constructor
factory

Properties

copyWith → $UserDataCopyWith<UserData>
no setterinherited
createdAt String?
The timestamp, in milliseconds, that the account was created at.
no setterinherited
customAuth bool
Whether the account is authenticated by the developer.
no setterinherited
disabled bool
Whether the account is disabled or not.
no setterinherited
displayName String?
The display name for the account.
no setterinherited
email String?
The email of the account.
no setterinherited
emailVerified bool
Whether or not the account's email has been verified.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
lastLoginAt String?
The timestamp, in milliseconds, that the account last logged in at.
no setterinherited
localId String
The uid of the current user.
no setterinherited
passwordHash String?
Hash version of password.
no setterinherited
passwordUpdatedAt int?
The timestamp, in milliseconds, that the account password was last changed.
no setterinherited
photoUrl Uri?
The photo Url for the account.
no setterinherited
providerUserInfo List<ProviderUserInfo>
List of all linked ProviderUserInfos.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
validSince String?
The timestamp, in seconds, which marks a boundary, before which Firebase ID token are considered revoked.
no setterinherited

Methods

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

Operators

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