removeFromToWatch method

Future<void> removeFromToWatch(
  1. Movie movie
)

Removes a movie from the to-watch list.

Implementation

Future<void> removeFromToWatch(Movie movie) async {
  final toWatch = await getToWatch();
  toWatch.removeWhere((m) => m.id == movie.id);
  await _saveToWatch(toWatch);
  _toWatchController.add(toWatch);
}