updatePhotoURL method

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

Updates the photo URL.

photoURL New photo URL.

Returns a Future that completes when updated.

Example:

await user.updatePhotoURL('https://example.com/photo.jpg');

Implementation

Future<void> updatePhotoURL(String? photoURL) async {
  if (photoURL == null || photoURL == this.photoURL) {
    return;
  }
  await _userHelper.updatePhotoURLHelper(
    client: createClient(_auth.app),
    user: this,
    photoURL: photoURL,
  );
  await reload();
}