Future<bool> signupwithemail(
String emailS, String passwordS, String nameS) async {
AuthResult result = await _auth.createUserWithEmailAndPassword(
email: emailS, password: passwordS);
FirebaseUser user = result.user;
var info = new UserUpdateInfo();
info.displayName = nameS;
await user.updateProfile(info);
await user.reload();
uid = user.uid;
email = user.email;
name = user.displayName;
}
my implementation doesnt work,i always get the name as null,can someone point out my error