User class
User
- Implemented types
Constructors
-
User.new({required String $id, required String $createdAt, required String $updatedAt, required String name, String? password, String? hash, Map? hashOptions, required String registration, required bool status, required List<
String> labels, required String passwordUpdate, required String email, required String phone, required bool emailVerification, required bool phoneVerification, required bool mfa, required Preferences prefs, required List<Target> targets, required String accessedAt}) -
User.fromMap(Map<
String, dynamic> map) -
factory
Properties
- $createdAt → String
-
User creation date in ISO 8601 format.
final
- $id → String
-
User ID.
final
- $updatedAt → String
-
User update date in ISO 8601 format.
final
- accessedAt → String
-
Most recent access date in ISO 8601 format. This attribute is only updated again after 24 hours.
final
- email → String
-
User email address.
final
- emailVerification → bool
-
Email verification status.
final
- hash → String?
-
Password hashing algorithm.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- hashOptions → Map?
-
Password hashing algorithm configuration.
final
-
labels
→ List<
String> -
Labels for the user.
final
- mfa → bool
-
Multi factor authentication status.
final
- name → String
-
User name.
final
- password → String?
-
Hashed user password.
final
- passwordUpdate → String
-
Password update time in ISO 8601 format.
final
- phone → String
-
User phone number in E.164 format.
final
- phoneVerification → bool
-
Phone verification status.
final
- prefs → Preferences
-
User preferences as a key-value object
final
- registration → String
-
User registration date in ISO 8601 format.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- status → bool
-
User status. Pass
true
for enabled andfalse
for disabled.final -
targets
→ List<
Target> -
A user-owned message receiver. A single user may have multiple e.g. emails, phones, and a browser. Each target is registered with a single provider.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, dynamic> -
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited