title: UserUpdateInfo undefined name 'user'
body: <p>Due to updating Firebase auth I need to change some deprecated code.
  I have seen on the Migration guide that:</p>
  <p><strong><strong>BREAKING</strong>: Removed the UpdateUserInfo class when using updateProfile in favor of named arguments.</strong></p>
  <p>I've updated it for the most part however I am still getting an error.</p>
  <pre><code>// Update the username
  await updateUserName(name, authResult.user);
  return authResult.user.uid;
  </code></pre>
  <p>}</p>
  <pre><code>Future updateUserName(String name, User currentUser) async {
  await FirebaseAuth.instance.currentUser.updateProfile(displayName: user.displayName);
  </code></pre>
  <p>}</p>
  <p>Error = Undefined name 'user'.</p>