removePersonalRating method

Future<void> removePersonalRating(
  1. Movie movie
)

Removes the user's personal rating for a movie from POD.

Implementation

Future<void> removePersonalRating(Movie movie) async {
  // Update the cache first to remove the rating.

  final ratings = _cachedRatings ?? {};
  ratings.remove(movie.id.toString());
  _cachedRatings = ratings;

  // Update the single movie file (primary storage) - will remove rating but keep comment if exists.

  await _createOrUpdateMovieFile(movie);

  // Skip backward compatibility saves to avoid encryption warnings.
}