hiveCacheServiceProvider top-level property
final
Provider for the Hive movie cache service. This creates a singleton instance that auto-initialises on first access.
Implementation
final hiveCacheServiceProvider = Provider<HiveMovieCacheService>((ref) {
final service = HiveMovieCacheService();
// Ensure the service is disposed when the provider is disposed.
ref.onDispose(() {
service.dispose();
});
return service;
});