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? profilePictureUrl,
  12. bool rememberFor24h = false,
  13. bool enableBiometric = false,
  14. bool enableMFA = false,
  15. bool enableTOTP = false,
})

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.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,
});