popularMoviesWithCacheInfoProvider top-level property
final
Provider for popular movies with caching information.
Implementation
final popularMoviesWithCacheInfoProvider =
FutureProvider.autoDispose<CacheResult<List<Movie>>>((ref) async {
final cachedService = ref.watch(configuredCachedMovieServiceProvider);
// Watch cache settings to invalidate when they change.
ref.watch(cachingEnabledProvider);
ref.watch(cacheOnlyModeProvider);
return cachedService.getPopularMoviesWithCacheInfo();
});