confirmSignUp method
Confirm sign up with confirmationCode, username, and password
Implementation
Future<void> confirmSignUp() async {
if (!_formKey.currentState!.validate()) {
return;
}
_setIsBusy(true);
TextInput.finishAutofillContext(shouldSave: true);
final confirmation = AuthConfirmSignUpData(
code: _confirmationCode.trim(),
username: _username.trim(),
password: _password.trim(),
);
_authBloc.add(AuthConfirmSignUp(confirmation));
await nextBlocEvent();
_setIsBusy(false);
}