getTopRatedMoviesWithCacheInfo method

Future<CacheResult<List<Movie>>> getTopRatedMoviesWithCacheInfo()

Get top rated movies with cache information.

Implementation

Future<CacheResult<List<Movie>>> getTopRatedMoviesWithCacheInfo() async {
  return _getMoviesWithCache(
    CacheCategory.topRated,
    () => _movieService.getTopRatedMovies(),
  );
}