signUpWithEmailPassword method

Future<void> signUpWithEmailPassword(
  1. String email,
  2. String password
)

Creates a new user with email and password. currentUser is set upon return.

Note: You will need to enable email and password auth support on Firebase for this to work.

Implementation

Future<void> signUpWithEmailPassword(String email, String password) async {
  'Creating a new account on Firebase'.logInfo();
  final UserCredential userCredential = await inqvineFirebase.firebaseAuth.createUserWithEmailAndPassword(email: email, password: password);
  _currentUser = userCredential.user;
  'Sign up was successful'.logInfo();
}