UserData constructor
const
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
Implementation
const factory UserData({
/// The uid of the current user.
required String localId,
/// The email of the account.
String? email,
/// Whether or not the account's [email] has been verified.
@Default(false) bool emailVerified,
/// The display name for the account.
String? displayName,
/// List of all linked [ProviderUserInfo]s.
@Default(<ProviderUserInfo>[]) List<ProviderUserInfo> providerUserInfo,
/// The photo Url for the account.
Uri? photoUrl,
/// Hash version of password.
String? passwordHash,
/// The timestamp, in milliseconds, that the account password was last
/// changed.
int? passwordUpdatedAt,
/// The timestamp, in seconds, which marks a boundary, before which Firebase
/// ID token are considered revoked.
String? validSince,
/// Whether the account is disabled or not.
@Default(false) bool disabled,
/// The timestamp, in milliseconds, that the account last logged in at.
String? lastLoginAt,
/// The timestamp, in milliseconds, that the account was created at.
String? createdAt,
/// Whether the account is authenticated by the developer.
@Default(false) bool customAuth,
}) = _UserData;