providers/cached_movie_service_provider library

Provider for the cached movie service in the Movie Star application.

Copyright (C) 2025, Software Innovation Institute, ANU.

Licensed under the GNU General Public License, Version 3 (the "License").

License: https://www.gnu.org/licenses/gpl-3.0.en.html.

Authors: Ashley Tang

Classes

ApiKeyNotifier
StateNotifier for managing API key state and changes.
CacheOnlyModeNotifier
StateNotifier for managing offline mode setting with persistence.
CachingEnabledNotifier
StateNotifier for managing caching enabled setting with persistence.

Properties

apiKeyProvider StateNotifierProvider<ApiKeyNotifier, String?>
Provider for the API key state that watches for changes.
final
apiKeyServiceProvider Provider<ApiKeyService>
Provider for the API key service.
final
cachedMovieServiceProvider Provider<CachedMovieService>
Provider for the cached movie service.
final
cacheOnlyModeProvider StateNotifierProvider<CacheOnlyModeNotifier, bool>
Provider for offline mode state with persistence.
final
cacheSettingsServiceProvider Provider<CacheSettingsService>
Provider for the cache settings service.
final
cacheStatsProvider FutureProvider<Map<CacheCategory, Map<String, dynamic>>>
Provider for cache statistics.
final
cachingEnabledProvider StateNotifierProvider<CachingEnabledNotifier, bool>
Provider for caching enabled state with persistence.
final
clearAllCacheProvider FutureProvider<void>
Provider for clearing all cache functionality.
final
clearCacheProvider FutureProviderFamily<void, CacheCategory>
Provider for clearing cache functionality.
final
configuredCachedMovieServiceProvider AutoDisposeProvider<CachedMovieService>
Provider for configured cached movie service (with settings).
final
forceRefreshProvider FutureProviderFamily<List<Movie>, CacheCategory>
Provider for force refresh functionality.
final
hiveCacheServiceProvider Provider<HiveMovieCacheService>
Provider for the Hive movie cache service. This creates a singleton instance that auto-initialises on first access.
final
initializedHiveCacheServiceProvider FutureProvider<HiveMovieCacheService>
Provider for the Hive movie cache service that ensures initialisation. Use this when you need a guaranteed initialised service.
final
movieServiceProvider Provider<MovieService>
Provider for the movie service.
final
nowPlayingMoviesProvider AutoDisposeFutureProvider<List<Movie>>
Provider for now playing movies with caching (backward compatibility).
final
nowPlayingMoviesWithCacheInfoProvider AutoDisposeFutureProvider<CacheResult<List<Movie>>>
Provider for now playing movies with caching information.
final
popularMoviesProvider AutoDisposeFutureProvider<List<Movie>>
Provider for popular movies with caching (backward compatibility).
final
popularMoviesWithCacheInfoProvider AutoDisposeFutureProvider<CacheResult<List<Movie>>>
Provider for popular movies with caching information.
final
topRatedMoviesProvider AutoDisposeFutureProvider<List<Movie>>
Provider for top rated movies with caching (backward compatibility).
final
topRatedMoviesWithCacheInfoProvider AutoDisposeFutureProvider<CacheResult<List<Movie>>>
Provider for top rated movies with caching information.
final
upcomingMoviesProvider AutoDisposeFutureProvider<List<Movie>>
Provider for upcoming movies with caching (backward compatibility).
final
upcomingMoviesWithCacheInfoProvider AutoDisposeFutureProvider<CacheResult<List<Movie>>>
Provider for upcoming movies with caching information.
final