UsernameType enum

The type of username input field presented to the user.

Depending on your Cognito configuration, users will be required to either create a unique username, or sign up with an email or phone number.

Inheritance

Constructors

UsernameType()
const

Values

username → const UsernameType

The user's chosen username.

email → const UsernameType

The user's email address, corresponding to their CognitoUserAttributeKey.email attribute value.

phoneNumber → const UsernameType

The user's email address, corresponding to their CognitoUserAttributeKey.phoneNumber attribute value.

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Constants

values → const List<UsernameType>
A constant List of the values in this enum, in order of their declaration.