initHive function

Future<void> initHive()

Implementation

Future<void> initHive() async {
  final appDocumentDirector =
      await path_provider.getApplicationDocumentsDirectory();

  Hive.init(appDocumentDirector.path);
}