prepareCache function

Future<void> prepareCache()

Implementation

Future<void> prepareCache() async {
  final docsDir = await getApplicationSupportDirectory();
  // Future<Store> openStore() {...} is defined in the generated objectbox.g.dart
  store = await openStore(directory: "${docsDir.path}/awesome-emoji-cache");
  isCacheLoaded = true;
}