title: Can't figure out the error with 'updateProfile' in my flutter code
body: <p>From the following code i don't know what to do with 'updateProfile' error</p>
  <pre><code>  signUp() async {
      if (_formKey.currentState.validate()) {
        _formKey.currentState.save();
  
        try {
          UserCredential user = await _auth.createUserWithEmailAndPassword(
              email: _email, password: _password);
          if (user != null) {
            [updateProfile][1] updateuser = await _auth.updateProfile();
            updateuser.displayName = _name;
            user.updateProfile();
          }
        } catch (e) {
          showError(e.message);
          print(e);
        }
      }
    }
  </code></pre>
  <p><img src="https://i.stack.imgur.com/NpqN8.jpg" alt="" /></p>