initialize method

Future<void> initialize()

Initialises the provider with Hive cache service.

Implementation

Future<void> initialize() async {
  if (_isInitialized) return;

  _service = HiveMovieCacheService();
  await _service.initialize();
  _isInitialized = true;

  notifyListeners();
}