UserData class Null safety

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

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>
@JsonKey(ignore: true)read-onlyinherited
createdAt String?
The timestamp, in milliseconds, that the account was created at.
read-onlyinherited
customAuth bool
Whether the account is authenticated by the developer.
read-onlyinherited
disabled bool
Whether the account is disabled or not.
read-onlyinherited
displayName String?
The display name for the account.
read-onlyinherited
email String?
The email of the account.
read-onlyinherited
emailVerified bool
Whether or not the account's email has been verified.
read-onlyinherited
hashCode int
The hash code for this object.
read-onlyinherited
lastLoginAt String?
The timestamp, in milliseconds, that the account last logged in at.
read-onlyinherited
localId String
The uid of the current user.
read-onlyinherited
passwordHash String?
Hash version of password.
read-onlyinherited
passwordUpdatedAt int?
The timestamp, in milliseconds, that the account password was last changed.
read-onlyinherited
photoUrl Uri?
The photo Url for the account.
read-onlyinherited
providerUserInfo List<ProviderUserInfo>
List of all linked ProviderUserInfos.
read-onlyinherited
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
validSince String?
The timestamp, in seconds, which marks a boundary, before which Firebase ID token are considered revoked.
read-onlyinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent 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