User class
User
- Implemented types
Constructors
- User({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 String passwordUpdate, required String email, required String phone, required bool emailVerification, required bool phoneVerification, required Preferences prefs})
-
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
- 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
- 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
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