Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- _createUser() async {
- UserUpdateInfo updateInfo = UserUpdateInfo();
- updateInfo.displayName = _usernameController.text;
- FirebaseUser user = await _auth
- .createUserWithEmailAndPassword(
- email: _emailController.text,
- password: _passwordController.text,
- )
- .then((user) {
- user.updateProfile(updateInfo);
- });
- print('USERNAME IS: ${user.displayName}');
- }
- NoSuchMethodError: The getter 'displayName' was called on null.
Add Comment
Please, Sign In to add comment