SignUpOptions constructor
const
SignUpOptions({
- Map<
AuthUserAttributeKey, String> ? userAttributes, - SignUpPluginOptions? pluginOptions,
Options for Amplify.Auth.signUp
.
userAttributes
is a map of key-value pairs, where the key is one of the
standard attributes, found under AuthUserAttributeKey.
For example:
final userAttributes = <AuthUserAttributeKey, String>{
AuthUserAttributeKey.email: 'test@example.com',
AuthUserAttributeKey.phoneNumber: '+18885551234',
};
final options = SignUpOptions(userAttributes: userAttributes);
Implementation
const SignUpOptions({
Map<AuthUserAttributeKey, String>? userAttributes,
this.pluginOptions,
}) : userAttributes = userAttributes ?? const {};