UserData constructor

const UserData({
  1. required String localId,
  2. String? email,
  3. @Default(false) bool emailVerified,
  4. String? displayName,
  5. @Default(<ProviderUserInfo>[]) List<ProviderUserInfo> providerUserInfo,
  6. Uri? photoUrl,
  7. String? passwordHash,
  8. int? passwordUpdatedAt,
  9. String? validSince,
  10. @Default(false) bool disabled,
  11. String? lastLoginAt,
  12. String? createdAt,
  13. @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;