signUpWithCredential method
void
signUpWithCredential(
- EmailAuthCredential credential
Tries to create a new user account with the given EmailAuthCredential
.
Implementation
void signUpWithCredential(fba.EmailAuthCredential credential) {
authListener.onBeforeSignIn();
auth
.createUserWithEmailAndPassword(
email: credential.email,
password: credential.password!,
)
.then(authListener.onSignedIn)
.catchError(authListener.onError);
}