updateProfile method
Update user's profile.
Throws FirebaseAuthException with following possible codes:
email-not-found
: user doesn't exist TODO
Implementation
Future<void> updateProfile({
String? photoUrl = '',
String? displayName = '',
}) async {
try {
_assertSignedOut(_auth);
await _auth._api.userProfile.updateProfile(
_idToken,
uid,
displayName: displayName,
photoUrl: photoUrl,
);
await reload();
} catch (e) {
rethrow;
}
}