nowPlayingMoviesWithCacheInfoProvider top-level property

AutoDisposeFutureProvider<CacheResult<List<Movie>>> nowPlayingMoviesWithCacheInfoProvider
final

Provider for now playing movies with caching information.

Implementation

final nowPlayingMoviesWithCacheInfoProvider =
    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.getNowPlayingMoviesWithCacheInfo();
});