signUp method
Implementation
Future<void> signUp() async {
if (!_formKey.currentState!.validate()) {
return;
}
_setIsBusy(true);
TextInput.finishAutofillContext(shouldSave: true);
final signUp = AuthSignUpData(
username: _username.trim(),
password: _password.trim(),
attributes: authAttributes,
);
_authBloc.add(AuthSignUp(signUp));
await nextBlocEvent();
_setIsBusy(false);
}