addToWatch method
- Movie movie
Adds a movie to the to-watch list.
Implementation
Future<void> addToWatch(Movie movie) async {
final toWatch = await getToWatch();
if (!toWatch.any((m) => m.id == movie.id)) {
toWatch.add(movie);
await _saveToWatch(toWatch);
_toWatchController.add(toWatch);
}
}