User class

Annotations
  • @JsonSerializable()

Constructors

User({String username = '', String userID = '', String? firstName, String? middleName, String? familyName, String? preferredName, String emailAddress = '', bool emailAddressVerified = false, String mobilePhone = '', bool mobilePhoneVerified = false, String? profilePictureUrl, bool rememberFor24h = false, bool enableBiometric = false, bool enableMFA = false, bool enableTOTP = false})
const
User.fromJson(Map<String, dynamic> json)
factory

Properties

emailAddress String
final
emailAddressVerified bool
final
enableBiometric bool
final
enableMFA bool
final
enableTOTP bool
final
familyName String?
final
firstName String?
final
hashCode int
The hash code for this object.
no setterinherited
initials String
no setter
isValid bool
no setter
middleName String?
final
mobilePhone String
final
mobilePhoneVerified bool
final
preferredName String?
final
profilePictureUrl String?
final
props List<Object?>
The list of properties that will be used to determine whether two instances are equal.
no setter
rememberFor24h bool
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
status UserStatus
no setter
stringify bool?
If set to true, the toString method will be overridden to output this instance's props.
no setterinherited
userID String
final
username String
final

Methods

copy() User
copyWith({String? username, String? userID, String? firstName, String? middleName, String? familyName, String? preferredName, String? emailAddress, bool? emailAddressVerified, String? mobilePhone, bool? mobilePhoneVerified, String? profilePictureUrl, bool? rememberFor24h, bool? enableBiometric, bool? enableMFA, bool? enableTOTP}) User
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited