CognitoUserAttributeKey class Auth

User attributes available for configuring via Amplify.Auth.signUp, or updating via Amplify.Auth.updateUserAttribute and Amplify.Auth.updateUserAttributes.

More information about these attributes can be found here.

Use CognitoUserAttributeKey.custom to create a custom Cognito attribute. {@hideConstantImplementations}

Inheritance

Constructors

CognitoUserAttributeKey.custom(String _key)
Creates a custom Cognito attribute.
const
CognitoUserAttributeKey.parse(String key)
Parses the given Cognito attribute key.
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
isCustom bool
Whether this is a custom key.
final
key String
The JSON key for this attribute.
no setteroverride
props List<Object?>
The type's equatable properties.
no setterinherited
readOnly bool
Whether this attribute can only be read from Cognito.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
runtimeTypeName String
The string value of runtimeType, saving a runtime lookup and preventing obfuscation during web compilation.
no setteroverride

Methods

compareTo(AuthUserAttributeKey other) int
Compares this object to another object.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() String
Serializes this as a JSON object.
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

hasCustomPrefix(String key) bool
Whether or not a key starts with the custom prefix that is required by Cognito for custom attributes.

Constants

address → const CognitoUserAttributeKey
The user's preferred postal address.
birthdate → const CognitoUserAttributeKey
The user's birthday, represented as an ISO 8601 YYYY-MM-DD format.
email → const CognitoUserAttributeKey
The user's preferred e-mail address.
emailVerified → const CognitoUserAttributeKey
Whether the user's preferred e-mail address has been verified.
familyName → const CognitoUserAttributeKey
Surname(s) or last name(s) of the user.
gender → const CognitoUserAttributeKey
The user's gender.
givenName → const CognitoUserAttributeKey
Given name(s) or first name(s) of the user.
identities → const CognitoUserAttributeKey
Federated identities of the user.
locale → const CognitoUserAttributeKey
The user's locale, represented as a BCP47 language tag, e.g. en-US.
middleName → const CognitoUserAttributeKey
Middle name(s) of the user.
name → const CognitoUserAttributeKey
The user's full name in displayable form including all name parts, possibly including titles and suffixes, ordered according to the user's locale and preferences.
nickname → const CognitoUserAttributeKey
Casual name of the user that may or may not be the same as their given name.
phoneNumber → const CognitoUserAttributeKey
The user's preferred telephone number.
phoneNumberVerified → const CognitoUserAttributeKey
Whether the user's preferred telephone number has been verified.
picture → const CognitoUserAttributeKey
URL of the user's profile picture.
preferredUsername → const CognitoUserAttributeKey
The username by which the user wishes to be referred to.
profile → const CognitoUserAttributeKey
URL of the user's profile page.
sub → const CognitoUserAttributeKey
The user ID.
updatedAt → const CognitoUserAttributeKey
The time the user's information was last updated.
values → const List<CognitoUserAttributeKey>
website → const CognitoUserAttributeKey
URL of the user's Web page or blog.
zoneinfo → const CognitoUserAttributeKey
A string from the zoneinfo time zone database representing the user's time zone, e.g. America/Los_Angeles.