User constructor

const User({
  1. String username = '',
  2. String userID = '',
  3. String? firstName,
  4. String? middleName,
  5. String? familyName,
  6. String? preferredName,
  7. String emailAddress = '',
  8. bool emailAddressVerified = false,
  9. String mobilePhone = '',
  10. bool mobilePhoneVerified = false,
  11. String defaultOrg = '',
  12. String defaultSpace = '',
  13. String? profilePictureUrl,
  14. bool rememberFor24h = false,
  15. bool enableBiometric = false,
  16. bool enableMFA = false,
  17. bool enableTOTP = false,
  18. Map<String, dynamic> userProfile = const {},
})

Implementation

const User({
  this.username = '',
  this.userID = '',
  this.firstName,
  this.middleName,
  this.familyName,
  this.preferredName,
  this.emailAddress = '',
  this.emailAddressVerified = false,
  this.mobilePhone = '',
  this.mobilePhoneVerified = false,
  this.defaultOrg = '',
  this.defaultSpace = '',
  this.profilePictureUrl,
  this.rememberFor24h = false,
  this.enableBiometric = false,
  // If MFA is enabled and TOTP is disabled
  // then SMS will be the preferred MFA type
  this.enableMFA = false,
  this.enableTOTP = false,
  // Custom user profile attributes
  this.userProfile = const {},
});