HiveCachedMovieService class
A cached service that wraps MovieService with Hive caching capabilities.
Constructors
- HiveCachedMovieService.new(MovieService _movieService, HiveMovieCacheService _cacheService, {bool cachingEnabled = true, bool cacheOnlyMode = false})
- Creates a new HiveCachedMovieService instance.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
clearAllCache(
) → Future< void> - Clear cache for all categories.
-
clearCacheForCategory(
CacheCategory category) → Future< void> - Clear cache for a specific category.
-
getCacheMetadata(
CacheCategory category) → Future< Map< String, dynamic> ?> - Get cache metadata for a category.
-
getNowPlayingMovies(
) → Future< List< Movie> > - Get now playing movies with caching.
-
getNowPlayingMoviesWithCacheInfo(
) → Future< CacheResult< List< >Movie> > - Get now playing movies with cache information.
-
getPopularMovies(
) → Future< List< Movie> > - Get popular movies with caching.
-
getPopularMoviesWithCacheInfo(
) → Future< CacheResult< List< >Movie> > - Get popular movies with cache information.
-
getTopRatedMovies(
) → Future< List< Movie> > - Get top rated movies with caching.
-
getTopRatedMoviesWithCacheInfo(
) → Future< CacheResult< List< >Movie> > - Get top rated movies with cache information.
-
getUpcomingMovies(
) → Future< List< Movie> > - Get upcoming movies with caching.
-
getUpcomingMoviesWithCacheInfo(
) → Future< CacheResult< List< >Movie> > - Get upcoming movies with cache information.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
setCacheOnlyMode(
bool cacheOnly) → void - Enables or disables offline mode.
-
setCachingEnabled(
bool enabled) → void - Enables or disables caching.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited