updatePhotoURL method

Future<void> updatePhotoURL(
  1. String? photoUrl
)

Update user's photoUrl.

Throws FirebaseAuthException with following possible codes:

  • email-not-found: user doesn't exist TODO

Implementation

Future<void> updatePhotoURL(String? photoUrl) async {
  try {
    _assertSignedOut(_auth);

    await _auth._api.userProfile.updateProfile(
      _idToken,
      uid,
      photoUrl: photoUrl,
    );
  } catch (e) {
    rethrow;
  }
}