signUpWithEmail method
Implementation
Future<User?> signUpWithEmail(
String email, String password, String name) async {
if (_authStatus == AuthStatus.LOGGED) {
await signOut(shouldNotify: false, canReauthenticate: false);
}
var user = await _myFirebaseAuth.signUpWithEmail(email, password, name);
if (user != null) {
await changeName(name);
_authStatus = AuthStatus.LOGGED;
$.log("Status $_authStatus", name: LOG_TITLE);
await actionsAfterLogIn?.call(AuthMethod.EMAIL, firebaseUser);
}
notifyListeners();
return user;
}