signUpWithCredential method

void signUpWithCredential(
  1. 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);
}