User constructor
const
User({
- String username = '',
- String userID = '',
- String? firstName,
- String? middleName,
- String? familyName,
- String? preferredName,
- String emailAddress = '',
- bool emailAddressVerified = false,
- String mobilePhone = '',
- bool mobilePhoneVerified = false,
- String defaultOrg = '',
- String defaultSpace = '',
- String? profilePictureUrl,
- bool rememberFor24h = false,
- bool enableBiometric = false,
- bool enableMFA = false,
- bool enableTOTP = false,
- 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 {},
});